Solution to ZigZag Conversion

Pure math