Delete BST not working

hello @POORVI_SAXENA
a)please check input format.(u r not taking input as per input format) and write code according to that only.

b) in output u need to print preorder taversal u r printing bfs so change that as well.
u can refer this code -> https://ide.codingblocks.com/s/285407