Zig Zag Conversion

size = 2*nrows-2;

j+size-2*i