Google interview question

Breath First Search Tree Algorithm