Https://ide.codingblocks.com/#/s/13243

https://ide.codingblocks.com/#/s/13243
there are two test case which are not pass…
question link: https://hack.codingblocks.com/contests/c/474/1371

Hey Rahul ! , actually your logic seems wrong as you are changing arrangement of string which you are not supposed to do that . Suppose you are given input bbccaaads then your code will first sort it and sstring become aaabbccds and gives output a3b2c2ds which is wrong . So hope you got it. If needed you can go through this code. Fine now??