Ivan's submission of Walk | CodeChef