Harsh Bhardwaj's submission of ATM | CodeChef