Okta Interview Question

A question about graph, DFS or BFS