Book Allocation Problem Leetcode Practice Group