Example : Pattern for N = 4
****
***
**
*
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’.
For each test case, print 'N' strings corresponding to 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 <= 300
Time Limit: 1 sec
The steps are as follows:
Print Name
Print Name
Print Name
Print Name
Print Name
Matrix Boundary Traversal
Star Triangle
Count Repeating Digits
Inverted Left Half Pyramid