Two numbers are given, X and Y. Count the numbers of bits needed to be flipped to convert X to Y.
Write a function
solve that have the following parameter(s):
1.) a = integer
2.) b = integer
X = 3
Y = 10
The binary representation of X is
0011 and Y is
1010. and If we flip first 0 and last 1 from X then it will be converted into Y.
X and Y will be greater than or equal to 1 and less than or equal to 100000