Badrinath Kulkarni's submission of ATM | CodeChef