Kanak Goel's submission of ATM | CodeChef