Ankan's submission of Question 2 | CodeChef