Left view of binary tree

question:https://codezen.codingninjas.com/practice/499/2023/left-view-of-binary-tree
output is correct but testcases are not not passing
https://ideone.com/BWvquJ

@ayu2321 your functions looks fine, could you send me the whole code which you are submitting in hackerblocks and getting wrong answer.

i have submitted the same solution on chalenge section in coding blocks and all the testcases got passed but at codezen testcases are not passing

oh read the output format carefully in codezen.