if(s.length() != t.length()){ // auto false if num of char does'nt compare. count[s.charAt(i) - 'a'] ++ ; //increament because of you including the count of char ...