Getting wrong answer.why i don't understand

https://www.codechef.com/viewsolution/34888714

It seems like everything is in fine but getting wa.

if a type of doll is not in pair it means that frequency of that type of doll should be odd (not one).

1 Like

Thanks.