Delete nodes from bst

Testcase 1 3 & 4 are not passing. Please tell what I am missing

@yashomar95,
In case the root has only 1 child, and that child is the first element to be deleted, your code will throw nullpointer exception because the parent node is null initially