Can anyone help me solve the 4th test case.
import java.util.*; public class Program { public static void main(String[] args) { Scanner in = new Scanner(System.in); String name = in.next(); int a = (int)(name.charAt(0)); int min=20; int agents = in.nextInt(); String others = in.next(); others += in.nextLine(); String[] ppl = others.split("[\\s]"); int c = ppl.length; if(agents>1){ c =c /agents; } for(int i=0; i<c; i++){ int b = (int)(ppl[i].charAt(0)); if(a>b){ min += 20; } else if(a<=b){ min = min; } else{ continue; } } System.out.print(min); } }