One test case not passed

https://ide.codingblocks.com/s/147456.
Check the code and find the error…3/4 test cases passed

check for this input
aaaaaaaaaaaaaaagggxsxssyyyyyoooooooooolllllwwqwdeddddddddkjjjoooooooooooooooooooo
error is in your ascii conversiom

1 Like

Thanks for pointing out the mistake.
I realized that my ASCII conversion worked only for single digit count.
Using “to_string” solved the issue.