GoTo interview question

Print tree in zig-zag