BFS - PRINT LEVEL ORDER - Doubt

My code is not printing all levels. I have already dry run the BFS code, and I am unable to find the error. https://ide.codingblocks.com/s/102107. Plz check.

there was a small error in your code
now it’s fine

Thanks for the correction.