I am getting WA for each test case. I am not able to find any bug in the code. Here is my code link:
Delete Nodes from BST
Mentioned the changes in comments ,all the chnages are in Main() i guess
If this resolves your query then please mark it as resolved:)