Apple Interview Question

how to rotate a Matrix rotation problem