Rotato Farms needs you're help again! They want to hire you to fix the issues caused by a recent earthquake. The monitor of their brand new computer has fallen sideways, and their methods to print out two-dimensional arrays aren't correct, but are rotated once counter-clockwise. It's your job to rotate these incorrect arrays once clockwise to fix the issue.
Input Format
An integer n, such that 0 < n < 15, followed by and n by n matrix separated by spaces and new lines
Sample Input
2
1 2
3 4
Output Format An n by n matrix representing the the clockwise rotation of the input.
Sample Output
3 1
4 2
You must be logged in to submit a solution.