walk-problem

https://www.codechef.com/viewsolution/21628919 help why it is wrong answers

//