Vertical order Binary tree

codelink: https://ide.codingblocks.com/s/186200
this is my implementation code , I am unable to understand that it is not giving desirable result, please correct my code and specify my error

Hey @Divya_321
Your code for tree formation is incorrect. Please look at the question once again.

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.

I know it’s not correct ,that’s y I am getting wrong answers specify my mistake and approach @Aarnav-Jindal-1059677350830863