for _ in range(int(input())):
n,k=map(int,input().split())
shoes=input()
record=dict()
ans=‘YES’
for i in shoes:
record[i]=shoes.count(i)
for j in record.values():
if j//2>k or j//2<1:
ans=‘NO’
print(ans)
what am i missing?
What if the number of shoes of some type are odd?
I am so dumb