Microsoft interview question

Bfs traversal in a graph