Best Binary Search Problems Leetcode Contest Solution