update solution for leetcode ZigZag Conversion