Srivaths P's submission of ATM | CodeChef