Test case not passing

i want to know why my two test cases are not passing

please reply…it would be a great help

@Gaurav_dev
you only go in left and down direction. But in the question it is clearly mentioned that you can go in upward and backward direction as well.

one test case is still not passing

@Gaurav_dev
If any of up,down,right or left is true just return true immediately.
here is the updated code, please check here: https://ide.codingblocks.com/s/243870

still one test case is not passing :wink:

@Gaurav_dev
Can you please submit same code on hackerblock plz and tell me whether it is working for all testcase or not?
here is the link of question: https://hack.codingblocks.com/app/practice/1/535/problem
I think there is some error in testcase

yeah ,it is passing on hackerblocks but not in this…so what to do

please reply how would i will get 100 marks on this question

@Gaurav_dev
Trying to contact problem setter. Will revert back to you soon