Meta interview question

Implement Djikstra's algorithm