Akashdeep Goel's submission of ATM | CodeChef