TLE error in python


#1

def meal(d,z):
count=0
if(n==1):
q=list(set(d[0]))
q.sort()
if(q==z):
count=1
else:
for a in range(n):
for b in range(a+1,n):
y=list(set(d[a]+d**))
y.sort()
if(y==z):
count=count+1
print(count)

t=int(input())
for a in range(t):
n=int(input())
z=[‘a’,‘e’,‘i’,‘o’,‘u’]
d=[[]]n
for b in range(n):
p=input()
p=list§
p=list(set§)
d
*=p
meal(d,z)


#2

Asking questions related to ongoing contests are not allowed, delete this question, if someone copy pasted your sol, both of you will receive a massive penalty in your rating and Codechef can even ban you for this.
Try to do this question by yourself till contest gets over.