for example:
Suppose the output is:
` 01234
10123
21012
32101
43210 `
In row 1, column 1, you get 0 because abs(1-1)=0.
In row 1, column 2, you get 1 because abs(1-2)=1.
In row 2, column 3, you get 1 because abs(2-3)=1
In row 4, column 1, you get 3 because abs(4-1)=3