Pregunta de entrevista de Qualtrics

The problem was a Dijkstra's algorithm question