For anyone confused by the logic, Solution 1 hinges on a rotation by 90 degrees being equivalent to a flip along the Top-Right/Bottom-Left diagonal, followed by a flip from top to bottom.

I believe Solution 2 is meant to combine these operations by handling 4 elements at a time?