Leetcode Complete Binary Search