Block interview question

Construct a binary tree given the inorder and preorder arrays