Deepanshu Pandey's submission of ATM | CodeChef