Construct binary tree from preorder and inorder - Leetcode problem

can u pls tell me what I am doing wrong?

ide->https://ide.codingblocks.com/s/218935

ques->https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/

@mikkyimran hey ,apka logic sahi nhi hai app just root ke left and right me call krrhe ho aur app preorder and inorder ke indexes ki range ka dhyan nhi rakh rhe mtlb apko range bhi definr krni pdegi while calling recursion :like inorder start ,inorder end, preorder start,preorder end aur recursion call krte hue ye indexes change honge,please try it one nhi hua to I will help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.