Easy ,CPP, using map


#1

int Solution::solve(string A) {
map<char,int>mp;
for(int i=0;i<A.size();++i){
mp[A[i]]++;
}
int f=0;
for(auto x:mp){
if(x.second%2==1) f++;
}
if(f>1) return 0;
return 1;
}