Domanda di colloquio di LocoNav

a question based on dynamic programming. a star grid problem.