LinkedIn Interview Question

One is binary tree search, one is BFS