Oracle interview question

Write an algorithm to solve a maze.