Oracle interview question

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