IXL Learning interview question

build an ordered tree with the same structure with the given tree.