Ankan's submission of Q6 | CodeChef