Solution to find number of bits required to convert integer A to integer B