the Hamming distance integer number position correspond bit differentGiven integer array num return sum Hamming distance pair integer num Example 1input num 4142output 6explanation in binary representation 4 0100 14 1110 2 0010 justshowe bit relevant casethe answer beHammingDistance4 14 HammingDistance4 2 hammingdistance14 2 2 2 2 6example 2input num 4144output 4 constraints1 numslength 1040 numsi 109the answer give input fit 32bit integer