Devesh Agarwal's submission of Dilemma | CodeChef