Dataminr interview question

Rotate a square matrix, then do it in place.