Block Interview Question

Construct a binary tree given the inorder and preorder arrays