Challenge Information

Title : Flipping
Difficulty : Easy
Solutions : 13
Maximum Score : 50
Completed by You: No
Description :

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

Example
Input:
X = 3
Y = 10
Output:
2

Explanation
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.

Constraints
X and Y will be greater than or equal to 1 and less than or equal to 100000

Judocode