Problem of the day
Sam is curious about Alpha-Hills, so he decided to create Alpha-Hills of different sizes.
An Alpha-hill is represented by a triangle, where alphabets are filled in palindromic order.
For every value of ‘N’, help sam to return the corresponding Alpha-Hill.
Example:Input: ‘N’ = 3
Output:
A
A B A
A B C B A
The first and only line contains an integer, ‘N’.
Output format:
Print the pattern as specified.
1 <= N <= 25
Time Limit: 1 sec
3
A
A B A
A B C B A
1
A