Binary Search Problems Leetcode Sql