Srihari Vasupalli's submission of ATM | CodeChef