Dinesh Goyal's submission of Dilemma | CodeChef