Problem Description
A = 9 B = 1 C = 2
Input 2:
A = 1 B = 1 C = 3
10
Output 2:
4
5 -> 101 Swapping 1st and 2nd bit from right gives 110.
Explanation 2:
1 -> 001 Swapping 1st and 3rd bit from right gives 100.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.