Okta interview question

A question about graph, DFS or BFS