Valid Network interview question

Implement BFS on a language of choice.