Zigzag Conversion - Leetcode 6 - Python