JAY KUMAR's submission of ATM | CodeChef