One test case is tle

Here one test case is showing tle…
I am not able to find any bug in code…


Please help

there are few mistakes

  1. return true form base case
  2. if you have go to right and it return true then you also have to return true no need to go down
    and after down you have to return whatever down return true or false

look at modified Code below

Modfied Code