Domanda di colloquio di McAfee

A question based on Dijkstra's algorithm