Shishir Khandelwal's submission of ATM | CodeChef