Ravi Chaudhary's submission of ATM | CodeChef