WHAT IS THE PROBLM IN MY SOLUTION PLZZ HELP (CHEFCHR)

import java.io.;
import java.util.
;
class jai
{
public static int n=0,m=4;
public static String st=“chef”;
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int cnt=0;
int cases=sc.nextInt();
for(int i=0;i<=cases;i++)
{
String S=sc.nextLine();
while(m<=S.length())
{
int p=0;
String sub=S.substring(n,m);
for(int j=0;j<=3;j++)
{
for(int k=0;k<=3;k++)
{
if(st.charAt(j)==sub.charAt(k))
{
p++;
break;
}
else
{
p=p+0;
}

    }
}
if(p==4)
{
    cnt++;
}
n++;
m++;

}
if(cnt==0)
{
System.out.println(“normal”);}
else{
System.out.println("lovely "+cnt);}
}
}
}

//