See More

package Strings; import java.util.Scanner; public class FunnyString { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); while(t--!=0){ boolean isfunny = true; String s = sc.next(); int l = s.length(); for(int i=1;i