Move All X at End

Hi I am unable to do to question.

So , Basically the string in JAva are passed by value, use a string builder instead,\

Also there has to 2 stringbuilers one to mantain those which are not ‘x’ other where x are appened
Then in the main function append the x`s string to non x string

u could even do it with 2 pointer
It would be O(N) without recursion

BUT note that use a StringBuilder instead of String since String are immutable.

Incase u are still stuck up with the code fell free to ask

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.