priyam arya's submission of ATM | CodeChef