int HammingDistance(std::string s1, std::string s2){ int cnt = 0; for(int i = 0; i < s1.size();i++){ if(s1[i] != s2[i]){ cnt++; } } return cnt; }