Report question

Question: How does this code snippet rotating a matrix work?