public boolean canTransform(String a, String b){
        if(a.length() != b.length()) return false;
        int diff = 0;
        for(int i = 0; i < a.length(); i++){
            if(a.charAt(i) != b.charAt(i)) diff++;
        }
        return diff == 1;
    }