add solution for zigzag level order