Sunil Sahu's submission of ATM | CodeChef