Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target. Exactly one valid answer exists, and you may not use the same element twice. Return the indices in increasing order.
Input
numstargetOutput
2 7 11 15 9
0 1
nums[0] + nums[1] = 2 + 7 = 9.
3 2 4 6
1 2
nums[1] + nums[2] = 2 + 4 = 6.
Run your code against the sample tests, or Submit to run the full suite.