Pregunta de entrevista de Bloomberg

One was a breadth first search question