AKUNA CAPITAL interview question

Coding: Matrix spinning problem(90, 180, 270 degrees)