Level order zig zag


it shows wrong answer

In line no 71, change the loop as :
for(int i=0;i<=h;i++){ and then see the output.