Okta interview question

Code a solution to do a graph traversal/ find shortest path