Rippling interview question

to implement a standard Dijkstra Algorithm