Gyan Prakash Karn's submission of ATM | CodeChef