Book Allocation Problem Codeforces