Tesla Interview Question

Rotate the matrix