Book Allocation Problem Codeforces Practice