// Move all ‘x’ to the end of the string. // Time Complexity = O(n) package Recursion; public class MoveCharacter { public static void moveAllX(String str, int idx, int count, String newStr){ if(idx == str.length()){ for(int i=0; i