Shivam Jindal's submission of ATM | CodeChef