Aman Pandey's submission of ATM | CodeChef