Pergunta de entrevista da empresa IBM

A question about the Hamming distance