Pregunta de entrevista de LinkedIn

One is binary tree search, one is BFS