Pergunta de entrevista da empresa Meta

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