challenge 6, step 1: hamming distance