Move ALL X at end Problem Doubt

Hi,
Please give any hint.
thanks

Hey @vatsal50
We follow a recursive approach to solve this problem. At each instance , we check whether the first character is a ‘x’ or not. We recursively obtain the result for the rest of the string i.e. the substring from index 1. If the first character of our current string is an ‘x’ , we concatenate it to the end of our resultant string. Else , we simply place concatenate it back to the front of our resultant string. The second part of the string is the result we obtained recursively.