Prashant Mahesh's submission of ATM | CodeChef