Pregunta de entrevista de McAfee

A question based on Dijkstra's algorithm