Pergunta de entrevista da empresa GE

it was graph question to find a path in maze