class Solution(object):

```
def addBinary(self, a, b):
x = int(a,2)
y = int(b,2)
loop = True
while loop:
temp_a = x & y #carry
temp_b = x ^ y #sum
x = temp_a << 1 # shifting the carry for each bit
y = temp_b
if( not temp_a):
loop = False
return bin(temp_b)[2:]
```