TEST CASE TROUBLE T__T
import java.util.Scanner; public class DejaVu { public static void main(String[] args) { Scanner input = new Scanner(System.in); String S1 = input.next(); String ABC = "abcdefghijklmnopqrstuvwxyz"; char [] A = S1.toCharArray(); char [] c = ABC.toCharArray(); int [] d= new int[26]; int sum = 0; for (int p=0;p<26;p++){d[p]=0;} for(int i=0; i<S1.length(); i++) {for(int j=0; j<26; j++){ if(A[i]==c[j]){d[j]++; sum+= d[j];} if(d[j]>=2){break;} } } if(sum==A.length){System.out.println("Unique");} else {System.out.println("Deja Vu");} } } My code just through 4/5 test cases, so I can't gain 50 exp as expect. :((( Could someone help me figure out the shot coming, please...