Cannot find run time error in code

in the recursion challenge, my code for “move all x at end” is giving run time error which i am unable to solve! what is the error in code?

@zodiac do increase the size of you character array this giving you run time error.