Failure of a testcase

code running properly on ide yet a testcase is failing

Please post your code here.
Thanks

Here’s my code:
https://ide.geeksforgeeks.org/dIytJad6su

hi, I am giving you a counter case to your program. eg. abbccccacccd , its expected output is ab2c4ac3d. try to fix your code on your own and let me know if you still face a problem.
thanks

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.