Akash Kandpal's submission of ATM | CodeChef