6. Zigzag Conversion - LeetCode Solution in Python