how we have to compress the string whether in alphabetical order or in unique order given in string i.e bbddaaassd, the pssible answer is (1) b2d2a3s2 (2) a3b2d2s2.
which option is answer for the given tetscase??
Wrong answer verdict
@Debugger You do not need to print in alphabetical order. For your case answer should be b2d2a3s2d1.
Also for your understanding
Consider a test case:
sskkkkkkwaerrtss
Expected Output:
s2k6w1a1e1r2t1s2
Hope this helps 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.