Two Sum II - Input Array Is Sorted

Given a sorted array of integers and a target, return the 1-based indices of the two numbers that add up to the target. Exactly one solution exists.

Examples
Input: [[2,7,11,15],9]
Output: [1,2]
Hints

Two Sum II - Input Array Is Sorted

Given a sorted array of integers and a target, return the 1-based indices of the two numbers that add up to the target. Exactly one solution exists.