Domanda di colloquio di Qualtrics

The problem was a Dijkstra's algorithm question