Microsoft Interview Question

Given a 2D matrix, rotate this matrix by 90 degrees.