Aalhad Kulkarni's submission of ATM | CodeChef