Sergey Kulik's submission of Walk | CodeChef