Pregunta de entrevista de Meta

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