Amazon Interview Question

Coding question: rotate a matrix 90 degrees