MediaTek Interview Question

Implement a function to rotate a matrix