Book Allocation Problem Leetcode Discussion