Vyapar Interview Question

A question on double dijkstra algorithm from graph