Shresth Sagar's submission of ATM | CodeChef