Problem with building the tree


the ouput produced is correct but the tree is not build the correct way. How to do that ? I am confused.
problem with building the tree

@tanjuljain19 here i have corrected lever order built -


i hope its clear if yes dont forget to mark it as resolved :smiley:

Thanks a lot for resolving my query