Binary Search Problem Leetcode Two Sum Solution