Leetcode 6. Zigzag Conversion Algorithm