Pergunta de entrevista da empresa Audible

Tree data structure, traversal, graph question