Give you a non-negative integer x and an operation. The only operation you can do is to reverse one bit in binary form of x
once(i.e 1->0, 0->1).
your goal is to turn x into x+1.
Calculate the minimum times of operations you need to do.
3
1
2
3
2
1
3