Pregunta de entrevista de Siemens Digital Industries Software

Simple Coding Problems, how to solve a maze?