


For example, Pattern for ‘N’ = 4 will be.
1
232
34545
4567654
The first line contains an integer 'T' which denotes the number of test cases or queries to be run.
The first line of each test case contains a single integer ‘N’ denoting the number of rows for which pattern needs to be printed.
The output of each test case will be 'N' strings denoting the pattern printed for the given ‘N’ number of rows.
Output of each test case will be printed on a separate line.
1 <=T <= 5
1 <= N <= 100
Where ‘T’ is the total number of test cases and ‘N’ is the given number of rows for which pattern needs to be printed.
Time limit: 1 sec
We can observe that there is an ‘N’ number of rows where ‘N’ is the total number of rows to be printed. And each row exactly contains ‘N’ - ‘row’ number of spaces where ‘row’ denotes the row number starting from topmost as 1. Also, when we go left to right the value of each element in a particular row increases by one starting from the ‘row’ number and then decrements in the same column from 2* ‘row’ - 1 till 'row'.