


Pattern for ‘N’ = 5:

‘N’ is always odd.
The first line of input contains ‘T’, denoting the number of test cases. Then each test case follows.
Each test case contains a single integer ‘N’, denoting the number given.
For each test case print 'N' strings denoting the pattern.
1 <= ‘T’ <= 5
1 <= ‘N’ <= 600
Time limit = 1 sec.
The main idea is to divide the pattern into two halves, the upper half and the lower half, and print them separately.
The steps are as follows:
Number of Digits
Matrix Boundary Traversal
Star Triangle
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Inverted Left Half Pyramid