Rajan's submission of ATM | CodeChef