Kumar Abhinav's submission of ATM | CodeChef