Binary tree created but its not displaying

Hi @shantanu.kaushik21,
your tree was not getting printed because you have’nt returned the node and your tree in your root.
I have made the changes in your code ,you will get to know better about the mistake.