Ankan's submission of Q2 | CodeChef