Sponsored
Use these hints if you're stuck. Try solving on your own first.
What is the maximum number of rotations you have to check?
Is there a formula you can use to rotate a matrix 90 degrees?
Solve with full IDE support and test cases