Raj Shah's submission of ATM | CodeChef