t=int(input())
for _ in range(t):
n,k=map(int,input().split())
ans=''
for i in range(n):
x=int(input())
if x%k==0:
ans+='1'
else:
ans+='0'
print(ans)
I wrote this solution for Chef and Steps Problem Code: CHEFSTEP, but i got nzec can someone please tell me my mistake?