Rebuild Binary Tree from Preorder and Inorder Traversals - Coding problem | OneNoughtOne