Add function to calculate hamming distance between 2 strings.
Start set1 problem 6