Create Tree(Preorder and Inorder)

Unable to pass the test cases.

I think you have made the tree using pre order and inorder but the question is make using postorder and inorder.Pls correct your code accordingly

Question is stating preorder and inorder only
https://hack.codingblocks.com/contests/c/588/482