Delete-nodes-from bst,it passes sample input only ,not test cases

see, u have to create the BST in place,
first element will go as root and the following elements will be placed according to their value
the method u have applied right now, it is to create a balanced BST. u do not have to do that
convert the array as it is into a BST not after sorting it