kapil garg's submission of Walk | CodeChef