Aman Mishra's submission of ATM | CodeChef