Pregunta de entrevista de Bossa Nova Robotics

Coding recursion question. Shortest path to destination