Anywhr interview question

Construct a binary tree from its inorder and pre/postorder traversal.