Oscar Health's member eligibility workflow may represent compact flags or counters as binary strings. Implement binary addition for two non-negative binary strings without converting either input to a built-in integer type.
Return the binary representation of their sum without leading zeros, except that the result for zero must be "0".
Implement add_binary(a, b):
a and b, each containing only the characters 0 and 1.0 and 1, representing the exact sum of the two inputs in base two.Process digits from right to left, maintaining a carry just as in decimal addition. The inputs may have different lengths and may contain leading zeros.
0 and 1."0".def add_binary(a, b):