Ankan's submission of Question 3 | CodeChef