carry to 0 and steps to 0.steps by 1 (even number, divide by 2).
b. If the character is '1' and there is a carry, increment steps by 1 (odd number, already added 1 due to carry).
c. If the character is '0' but there is a carry, or the character is '1' without a carry, increment steps by 2 (odd number, add 1 and divide by 2).steps by 1 to account for the final addition that results in '10'.steps.