DoorDash interview question

Dijkstra's algorithm