Finished problem 6 (Hamming Distance)