Chaitya Reddy's submission of ATM | CodeChef