Example :
For N=5, Pattern:
E
DE
CDE
BCDE
ABCDE
The first line of input contains an integer ‘T,’ denoting the number of test cases. The test cases follow.
The first line of each test case contains a single integer ‘N’ , denoting the number of rows in the matrix.
For each test case, print 'N' strings denoting every row in a new line (row elements not separated by space)
Print the output of each test case in a separate line.
You are not required to print the expected output; it has already been taken care of. Just implement the function.
1 <= T <= 50
1 <= N <= 26
Time Limit: 1 sec
The idea is to use nested loops in such a way that yields the answer.
The steps are as follows: