LeetCode
ZigZag Conversion
Click
here
for an explanation.