Arnav Banerjee's submission of ATM | CodeChef