Maharshi dave's submission of ATM | CodeChef