Epic Interview Question

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