solution to Construct Binary Tree from Preorder and Inorder Traversal