Domanda di colloquio di Meta

I was asked to implement Djikstra's shortest path algorithm.