output the afpreorder of tree by its preorder and inorder or output the preorder by its aforder and inorder