I couldn’t find any issues here in the code!

It’s working fine with all possible test cases I can think of !

Can you please help in finding out the problem?? It’s showing wrong answer (WA).

```
def clfibd(occ):
for i in range(len(occ)-1):
for j in occ[i+1:]:
if (occ[i] + j) in occ:
return "Dynamic"
return 'Not'
for _ in range(int(input())):
s = input()
alpha = set()
for i in range(len(s)):
alpha.add(s[i])
if len(alpha) < 3:
print('Dynamic')
else:
occ = list()
for i in alpha:
occ.append(s.count(i))
occ.sort()
print(clfibd(occ))
```