Binary Search Problem Leetcode Two