American Express interview question

Plot a 10x10 matrix and, without using any additional Java library functions or built-in data structures, rotate the matrix by 90 degrees.