Ankan's submission of Q19 | CodeChef