Pregunta de entrevista de Oracle

Store an n-ary tree in an array and the construct back the tree from the array.