LinkedIn interview question

One is binary tree search, one is BFS