public static int getHammingDistance(String a, String b){
        if(a.length() != b.length()) return -1;
        int count = 0;
        for(int i = 0; i < a.length(); i++){
            if(a.charAt(i) != b.charAt(i)) count++;
        }
        return count;
    }