Inspired by Raymond Chen\'s post, say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I\'d
For i:= 0 to X do For j := 0 to X do graphic[j][i] := graphic2[X-i][j]
X is the size of the array the graphic is in.