The question is to Construct Binary Tree from Preorder and Inorder Traversal.
I thought root is a global class so the function can change it but it turns out not.