Ankan's submission of Question 4 | CodeChef