// the last column of each row is increased by the given size(4) of the pattern // odd number row each element is increased by 1 and // even number row each element is decreased by 1.