Amazon interview question

Coding question: rotate a matrix 90 degrees