AppDynamics Interview Question

Rotate a matrix in place.