Dataminr Interview Question

Rotate a square matrix, then do it in place.