Take a decimal number in base 10, convert it to binary, interchange all the 1s and 0s, then convert that number back to base 10.
The input is a nonnegative decimal number represented as a string, with no leading zeros except for "0". Use the shortest binary representation, so leading zeroes are not included before interchange. Return the result as a decimal string.
Function: def invert_binary_decimal(decimal_string):
0 through 9"0"def invert_binary_decimal(decimal_string):