Amazon Interview Question

One question asked in one-one interview was Rotate a 2D matrix.