In the Solution approach why are we not iterating till 32 ? Can someone please explain that

# Why the iteration is till 31 in the solution of Hamming Distance?

Because the numbers are non-negative integers(given in question),32 bit is used to for sign of a number .

32 bit is always 0 for non-negative numbers