Question: Two integers A and B are given, find the no of bits that need to be flipped in A to get B

Solution: Count the number of set bits in XOR of A and B.