Aditya Raj's submission of ATM | CodeChef