Okta interview question

bfs traversal in a graph