Anant Bedi's submission of ATM | CodeChef