Delete Node from BST

Code Link: https://ide.codingblocks.com/s/87735
Code is running fine but not passing the test case