get level
given preorder and inorder, output post order