Concept Flow - Rat in a Maze Problem
Start at maze[0
Check if current cell is safe
Mark cell as path
Try move Right
→Try move Down
If move leads to exit
→Backtrack
Exit found
The rat starts at the top-left cell and tries to move right or down if the cell is safe. If stuck, it backtracks until it finds the exit or no path exists.