Roblox interview question

Shortest path through graph problem