Pergunta de entrevista da empresa Cat Daddy Games

Given a set maze, write an algorithm for finding the exit as quickly as possible.