Solved zigzag_conversion.