void matchPairs(int n, char nuts[], char bolts[]) {
vector<char> expected= { '!','#','$','%','&','*','?','@','^' };
unordered_map<char,int>mp;
for(int i=0;i<n;i++)
mp[nuts[i]]++;
int i=0;
for(auto it: expected)
{
while(i<n && mp[it]>0)
{
nuts[i]=it;
bolts[i]=it;
i++;
mp[it]--;
}
}
}