My code is not submitting

i dont knw y my code is not submitting

import java.util.*;
class Main{
public static String movx(String str,int i,String s)
{

	if(i==str.length())
		return s;
	if(str.charAt(i)=='x')
	{
		String sol=movx(str,i+1,s)+"x";
				return sol;
		
	}
	else
		{
		String sol=movx(str,i+1,s+str.charAt(i));
		return sol;
		}
}
public static void main(String[] args) {
	System.out.println(movx("axbxc",0,""));
}

}

Hey @Avnish-Singh-2724104534303277
Take input from Sacnner
correct code :

import java.util.*;

class Main {
public static String movx(String str, int i, String s) {
if (i == str.length())
return s;
if (str.charAt(i) == ‘x’) {
String sol = movx(str, i + 1, s) + “x”;
return sol;
} else {
String sol = movx(str, i + 1, s + str.charAt(i));
return sol;
}
}

public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	String str = sc.next();
	System.out.println(movx(str, 0, ""));
}

}