Why my test cases fails

i triedall types of input but test cases are failing wht ?
and please tell correction in the code

for input: aaaabc
you code will give: aabc
the mistake you have done is you pass pos+1 for next call but you have to pass same pos means
instead of this : return process(str,pos+1);
you have to write return process(str,pos);

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.