Ashish Khatkar's submission of ENCOUNTER | CodeChef