String_compression

Tow of the testcases are not working. could you rectify my mistake?

hi @Jajatee
for the string “aaabbaa”
the output should “a3b2a2”
but your output is “a3b2a5”