Two of the test cases are not passed for the following code for String Compression
Hello @rajharsh865 you are doing wrong.
see this code:
the output for the sample test case should be:
a3b2c2d1s1a1
Here for your reference i am giving you the correct code:
Happy Learning!!