Amazon Interview Question

"Given preorder and inorder traversal of a tree, construct the binary tree."