How to create bst form given post order and inorder

https://ide.codingblocks.com/s/289754 why this code is giving segmentation fault how to correct it

@rohitkandpal683 creating tree from inorder and post is just opp of pre and in so have done using preorder and inorder (if yes share that code i will make the req changes)