Book Allocation Problem Binary Search Leetcode Problem