lokesh garg's submission of ATM | CodeChef