Pls help me to debug the code of building BST

hello @Senjuti256 you are not forming the tree in the correct manner:

So for all questions of these type of input we will build the tree from array right?

@Senjuti256 yes right.
but i think there are some other questions in which you have to apply other logic as /well.
this you will get to know with the questions.

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.