My issue
why is this code wrong?
My code
# cook your dish here
for _ in range(int(input())):
n=int(input())
a=input()
c1,c2=0,0
for i in a:
if i=="0":
c1+=1
else:
c2+=1
print(min(c1,c2))
Problem Link: Maximum Score Practice Coding Problem - CodeChef