Akshit Srivastava's submission of ATM | CodeChef