Nishant Nahata's submission of ATM | CodeChef