Concept Flow - Rat in a Maze Problem
Start at (0,0)
Check if current cell is safe
Yes
Mark cell as part of path
Check if destination reached
Return True
Try moving Right
Backtrack if no path
Return False if no moves
The rat starts at the top-left cell and tries to move right or down if the cell is safe, marking the path. If it reaches the destination, it returns success; otherwise, it backtracks.
