Question d’entretien chez ServiceNow

Algorithm using dynamic programming. Find the optimal solution to complete a maze.