You are currently located inside a maze. The walls of the mazeare indicated by asterisks (*).

Use the following recursive approach to check whether you canescape from the maze:
If you are at an exit, return true.
Recursively check whether you can escape from one of the emptyneighboring locations without visiting the current location.
This method merely tests whether there is a path out of themaze.
Extra credit (+20 points) if you can print out a path thatleads to an exit.
Please print out the path that leads to the exit.
Sample run without the path:
File name? maze1_9x9.txt
Maze width? 9
Maze height? 9
OK, maze is
PayPal Gateway not configured
PayPal Gateway not configured