Solution to the POTD matrix rotation problem

Works with nxn matrices, rotation logic is a 6-line function.