Delete node from bst

getting 4 test cases wrong in delete node from bst

Can u pls tell the approach you have used in your delete function ?