Which test case is failing

#include
#include

using namespace std;

void stringComp (char s[]){

int freqOfC[26]={0};

for(int i=0;i<strlen(s);i++){
freqOfC[s[i]-97]++;
}

for(int i=0;i<26;i++){
if(freqOfC[i]==1)
cout<<char(i+97);
else if(freqOfC[i]>1)
cout<<char(i+97)<<freqOfC[i];

}

}
int main() {
char s[1000];
cin.getline(s,1000);

stringComp(s);
return 0;

}

hi @pushkarsingh5247_4b1a78f1d102c737 order is important
ans for abaa is a1b1a2 your output is wrong

@pushkarsingh5247_4b1a78f1d102c737 refer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.