Best Binary Search Problems Leetcode Javascript