Epic Games interview question

Write a function to rotate a Matrix