Move All X at End

Why my code is failing for some test cases?

hey @MG7
u need to keep the relative ordering of the other character same as before

code will be something like this

ya i saw the code
ur code is not producing the desired result
like
eg:
akxixol
will give o/p
akiolxx

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.