Pergunta de entrevista da empresa Siemens Digital Industries Software

Simple Coding Problems, how to solve a maze?