Construct Binary Tree from Preorder and Postorder Traversal
Returnanybinarytreethatmatchesthegivenpreorderandpostordertraversals.Valuesinthetraversalspreandpostaredistinctpositiveintegers.Example1:Input:pre=[1,2,4,5,3,6,7],post=[4,5,2,6,7,3,1]Output:[1,2,3,4,5