The Hamming distance between two bit patterns of same length is the number of bit positions at which they (bits) differ. For example, the Hamming distance between 11101010 and 00011001 is 6, since they differ at 1st , 2nd, 3rd , 4th, 7th, and 8th positions.
Write a program, which inputs 2 non-negative integers, determines their binary representation and outputs the Hamming distance between their binary representations.