Rishi Mohan Jha's submission of ATM | CodeChef