Ankit Kumar Singh's submission of ATM | CodeChef