You are given two numbers written in binary (base 2) as strings of '0' and '1' characters, a and b. The leftmost character is the most significant digit.
Return their sum, also written in binary as a string, with no leading zeros (the sum 0 is written "0").
The strings can be thousands of digits long, far beyond what fits in a 64-bit integer.
In decimal this is 5 + 3 = 8. Adding from the right, each column gives 2, which is written 0 with a 1 carried into the next column, so the carry runs all the way to a new leading digit.
50 + 11 = 61. The strings have different lengths: line them up on the right, as you would with decimal numbers.
Constraints
1 <= a.length, b.length <= 10⁴a and b consist of the characters '0' and '1' only."0".Add the way you would on paper: line the two numbers up on the right and work one column at a time, carrying into the column on the left. Converting the strings to integers breaks once they pass 64 bits.