Pregunta de entrevista de Google

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