Pregunta de entrevista de Amazon

Write code for a tree whose number of children is configurable