Example 1
pairWithTargetSum()Input
nums = [29, 20, 14, 37, 32, 38, 23, 40, 15, 11, 13, 6, 8, 2, 12, 9, 19, 21, 24, 16, 18, 22, 36, 7, 1, 17, 33, 35, 3, 31, 28, 25, 39, 34, 10, 5, 27, 4, 30, 26, 1, 1, 1, 1, 1, 1, 1], target = 29Output
[2, 8]Why
`pairWithTargetSum` returns `[2, 8]` for this input.