TikTok interview question

Dijkstra Algorithm Graph traversal question