Given a sorted array of integers and a number n, find a pair of numbers in the array whose sum is n.
Start with a pair constituted of the first and last numbers of the sorted array. At each step, compute the sum of the current pair. If the sum is larger than our objective, take following element as the first of our pair.