Google Interview Question

Hamming distance of strings with specified distance