Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number.
Return the indices of the two numbers, 1-indexed, as an integer array [index1, index2] of size 2.
The tests are generated such that there is exactly one solution. You may not use the same element twice.
Visualizer will appear here