Runtime Error on tc 1,2 and 4. Can't figure out why?

hello @Arpan_Goswami
image
this should be
root=deleteNode(root,x);

Thanks. Silly mistake on my part. Have marked it resolved