Shiv Prakash Sharma's submission of ATM | CodeChef