Question #6


You will find an example maze in the file ~mohammad/maze. A POUND sign is a fence, everything else is a way. The entrance is in the left upper corner (first character in the file). From each point in the maze you may only walk in the following directions:
north
south
east
west

There are five exits at the bottom.

Your program must start at the entrance and search for a path to an exist finding characters along the way. These characters will form a word. This word is the solution that you must output.