Vertical order printing problem

My code is not passing any test case.
Please help

hello @rahul.gupta03111999
ur logic for printing vertical order is correct, once cross check ur buildtree function

@rahul.gupta03111999
image

u r not reading the number of levels(though it is of no use but still u need to take input)