Given a 1-indexed array of integers numbers that is sorted in non-decreasing order, find two distinct numbers that add up to a specific target number and return their indices as an array. The problem guarantees that there is exactly one solution and the solution should use constant extra space.
Click Run to execute sample tests.