Tree bottom view - WA

Can anyone please explain what is wrong in my code, it is not giving the right output.

@ashu.shaw09 please copy your code on ide and share it here

Hey Ashutosh,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.