Pregunta de entrevista de Terralogic

write a program to create a tree like structure where each parent node will be having 2 more child node with using pre order post order in order -where it should Dynamic not static O/P?