update HammingDistanceProblem.java class