Pergunta de entrevista da empresa Google

Find all elements in the subtree of a node in a given graph.