Move All X at End

Can someone take a look at my code and let me know why my code isn’t giving a successful submission? All the test cases seem to run correctly.

@SMRITI check for this
abexexdxx

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.

abexexdxx – > abeedxxxx I get this. Isn’t this the expected output?

@SMRITI you are getting garbage in between run here