BST- construct from preorder is giving wrong output

hello @shrutikatyal
check now->

u were not reading pre array