Output the square, consisting of NxN cells filled with numbers from 1 to N2 in a spiral (see examples).
The first line is a single numberN (2 ≤ N ≤ 100).
We derive N rows of N numbers, separated by spaces. Not allowed to start a spiral in the other, except in the upper left-hand corner, spinning spiral counterclockwise, or outward.
1 2 4 3