Problem Statement

The goal of the problem is to rotate a given NxN matrix by 90 degrees clockwise .

Constraints : Integer Array

Example :

Input : [ 3 x 3 ]

1 2 3

4 5 6

7 8 9

Output :

7 4 1

8 5 2

9 6 3

Input [5 x 5 ] :

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

Output :