srinivas rao's submission of ATM | CodeChef