Zigzag tree traversal

what wrong in my code

Ankit, pls share your code by saving on ide so that I could check it…