and if we want to reverse diagonal matrix, like:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
and if we reverse the diagonals it will be like that:
5 2 3 4 1
6 9 8 7 10
11 12 13 14 15
16 19 18 17 20
25 22 23 24 21
or like this example:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
and it will be like this:
4 2 3 1
5 7 6 8
9 11 10 12
16 14 15 13
but were not allowed to use functions and the matrix is always the a[N][N] kind..