Binary Search Problem Leetcode Two Pointer