Pergunta de entrevista da empresa Amazon

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