Pergunta de entrevista da empresa Samsung Electronics

To write an algorithm that escapes a maze.