Appian Interview Question

hardest problem I got was to code dijkstra's algorithm