Problems
After receiving the side length n of a square,
write a program that outputs a square made of characters as shown below.
<Processing Conditions>
The order of the characters proceeds as follows:
starting from the top-left, fill downward in order from ‘A’,
then again fill from the bottom-right upward,
continuing this pattern as shown in the table below.
After ‘Z’, start again from ‘A’.

Input
Receive the side length n of the square (n is an integer between 1 and 100).
Output
Print the character square with side length n in the format described above.
Separate the characters with spaces.
Example
4
A H I P
B G J O
C F K N
D E L M
Tag
Source
JUNGOL