RAT IN A MAZE PROBLEM

Hey , can you see my solution ,whether it is correct approach or not?

hello @CODER_JATIN
yeah your logic is correct

Okay bhaiya , Thank you ;)\