Epic interview question

Write a function which rotates an N by N matrix m times