Tree left view logic not working

I am traversing every level and printing its first left node.If no left then printing right node…Butt the output is showing only zeros.
The leftview Loop will run hmax times


@saurabh2 @jaiskid

you have to use the same approach as used in level order printing
I have modified your code you can see

i cant see the modifications. Please upload the saved file

found the error thanks.