TikTok Interview Question

Dijkstra Algorithm Graph traversal question