AKUNA CAPITAL interview question

Rotate the matrix