407 ETR interview question

Write code to rotate a NxN matrix in place