Rotate Image Rotate Groups of Four Cells Time complexity: O(n^2), Space complexity: O(1) Reverse on Diagonal and then Reverse Left to Right Time complexity: O(n^2), Space complexity: O(1)