Pergunta de entrevista da empresa Palo Alto Networks

save relations between nodes and then print the tree.