Bloomberg interview question

BFS find level of node at tree