Create tree(using preorder and inorder)

in this question of creating tree using preorder and inorder array, my code is giving no output
here’s the link https://ide.codingblocks.com/s/233707

I have edited your code… Try to submit it now…