Binary Search Leetcode Problem