Solved construct binary tree from preorder and inorder traversal problem.