Tree from PRE and In Order

This is my code for the given problem it is showing segmentation fault

hi @akshat42bajpai,
if(ino[j]==pre[i]){ // pre[i]
u wrote pre[j]