Pregunta de entrevista de Appian

hardest problem I got was to code dijkstra's algorithm