Solution Hamming Problem