You cannot create a unique tree with post and pre-order traversal you need to have either inorder with preorder or postorder this question seems ambiguous , if it would have been Binary search tree then inorder is sorted sequence and tree is possible but here only binary tree is given.