leetcode, zig zad conversion