💡 String Compression

two test case are not passing
please check my code

should i consider for uppercase ?

but its not mentioned in the problem statement

now i have change my logic https://ide.codingblocks.com/s/155633

but still onetest case is not passing

@sk3657860 hey sonu your logic is not working for this
aaaaaaaaaaaaaagggxsxssyyyyyoooooooooolllllwwqwdeddddddddkjjjoooooooooooooooooooo