Leetcode Binary Search Problem