Unable to pass Test Cases

Mam can u please help me out with the error in the code present.

Input:
aabbaa

Your output:
a4b2

Correct output:
a2b2a2

Thanks You mam.Now im able solve it.

1 Like

If this solves your doubt please mark it as resolved :slight_smile: