Level order ZigZag traversal

why this code doesn’t work for zigzag level order traversal?

share the link of the question

https://online.codingblocks.com/app/player/151701/content/153625/4973/code-challenge

@div_yanshu07 hey your code is passing all the test cases on hackerblocks. your code is correct
.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.