Rat in a Maze Problem

Why I am getting 2 test cases failed?

Hi @sharmakaran1244

Read the question properly. We have to find the rightmost part out of all available paths.
First check for right path and then for down path.
Rest of your code is correct.

Hope this helps :slight_smile:

Thanxx a lot Shivansh :wink: