Why am i getting the wrong answer while submission and the correct answer for every case I have tried

image

the o/p is wrong
for multiple occurance the o/p should just 1 have instance of that character
answer should be asfdfe

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.