Pregunta de entrevista de Samsung Electronics

To write an algorithm that escapes a maze.