Creating tree using Pre&inorder

this is my code, I had even tried to copy Prateek Bhaiya’s code but still getting run time error.

update in the buildTree function and printstyle bhi add kia h