Help to write the print function

Hey,i have replied in chat.You can see that

https://www.geeksforgeeks.org/tree-traversals-inorder-preorder-and-postorder/#:~:text=In%20case%20of%20binary%20search,nodes%20in%20non-decreasing%20order.&text=Preorder%20traversal%20is%20used%20to,on%20of%20an%20expression%20tree.
You can see all ways of printing tree here

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.