https://online.codingblocks.com/player/28486/content/4700/4744
two test cases are not passing?
String-Compression
Run Your Code For:
aabbbab
expected output: a2b3a1b1
This would help you to understand your mistake.
Run Your Code For:
aabbbab
expected output: a2b3a1b1
This would help you to understand your mistake.