complete problems/zigzag-conversion/ by iterate