FactSet interview question

zigzag tree traversal