Ashish Trivedi's submission of Divide the Cake | CodeChef