The chef is trying to solve some pattern problems, Chef wants your help to code it. Chef has one number K to form a new pattern. Help the chef to code this pattern problem.

-----Input:-----
- First-line will contain $T$, the number of test cases. Then the test cases follow. 
- Each test case contains a single line of input, one integer $K$. 

-----Output:-----
For each test case, output as the pattern.

-----Constraints-----
- $1 \leq T \leq 100$
- $1 \leq K \leq 100$

-----Sample Input:-----
3
2
3
4

-----Sample Output:-----
0
*1
**2
0
*1
**2
***3
0
*1
**2
***3
****4

-----EXPLANATION:-----
No need, else pattern can be decode easily.

Difficulty: interview

Starter code:

Solutions:
# cook your dish here
t=int(input())
for i in range(0,t):
    my_ip = int(input().strip())
    for xyz in range(my_ip+1):
        for abc in range(0,xyz+1):
            if abc == xyz:
                print(xyz,end="")
            else:
                print('*',end="")

        print()

# cook your dish here
n=int(input())
for i in range(n):
    k=int(input())
    for j in range(0,k+1):
        for l in range(0,j+1):
            
            if j==0:
                print(j)
            elif l<j:
                print("*",end="")
            elif l==j:
                print(l)
    print("\n")        

for u in range(int(input().strip())):
    n = int(input().strip())
    for i in range(n+1):
        for space in range(0,i+1):
            
            if space == i:
                print(i,end="")
            else:
                print('*',end="")
        
        print()

for _ in range(int(input())):
    n = int(input())
    print(0)
    x = 1
    for i in range(n):
        print('*'*x+str(x))
        x+=1

try:
	for _ in range(int(input())):
		n=int(input())
		print(0)
		for i in range(1,n+1):
			print("*"*i + str(i))
except: pass

try:
	for _ in range(int(input())):
		n=int(input())
		print(0)
		for i in range(1,n+1):
			print("*"*i + str(i))
except: pass

for i in range(int(input())):
    s=int(input())
    for i in range(0,s+1):
        for k in range(i):
            print("*",end="")
        print(i)

from sys import*
input=stdin.readline
t=int(input())
for _ in range(t):
    n=int(input())
    for i in range(n+1):
        d=i
        for j in range(i+1):
            if d>0:
                print("*",end="")
                d-=1
            else:
                print(j,end="")
        print()


# cook your dish here
for i in range(int(input())):
    s=int(input())
    for i in range(0,s+1):
        for k in range(i):
            print("*",end="")
        print(i)


t=int(input())
while t>0:
    t-=1
    n=int(input())
    a=[]
    print(0)
    for i in range(1,n+1):
        for j in range(i+1):
            if j==i:
                print(i,end="")
            else:
                print("*",end="")
        print()


n=int(input())
for i in range(n):
    a=int(input())
    b=""
    for j in range(0,a+1):
        b=""
        b=b+'*'*j+str(j)
        print(b)


# cook your dish here
for i in range(int(input())):
  n = int(input())
  for i in range(n+1):
    temp=i
    while(temp!=0):
      print("*",end="")
      temp-=1
    print(i,end="")
    print()

for _ in range(int(input())):
    n=int(input())
    for i in range(0,n+1):
        for j in range(0,i+1):
            if i==j:
                print(j,end='')
            else:
                print('*',end='')
        print()

# cook your dish here
for _ in range(int(input())):
    n=int(input())
    for i in range(n+1):
        for j in range(i+1):
            if j==i:
                print(i,end='')
            else:
                print("*",end='')
        print()

# cook your dish here
for _ in range(int(input())):
    n=int(input())
    print("0")
    for i in range(1,n+1):
        for j in range(i):
            print("*",end="")
        print(i)



for _ in range(int(input())):
    n=int(input())
    a=0
    for _ in range(1,n+2):
        print('*'*(_-1),end="")
        print(_-1)
    print()    

n = int(input())
while(n>0):
    n-=1
    a = int(input())
    for i in range(a+1):
        print("*"*i, end='')
        print(i)


n=int(input())
for i in range(n):
    a=int(input())
    for j in range(a+1):
        for k in range(j):
            print("*",end="")
        print(j)# cook your dish here


n=int(input())
for i in range(n):
    a=int(input())
    for j in range(a+1):
        for k in range(j):
            print("*",end="")
        print(j)# cook your dish here


for _ in range(int(input())):
    n = int(input())
    for i in range(n + 1): print('*' * i + str(i))

for _ in range(int(input())):
    starcount = 0
    n = int(input())
    for i in range(n + 1):
        print(i * "*", end='')
        print(i)

    #print("________________")# cook your dish here