Leetcode solving 704 Binary Search