Python3 Solution
\nclass Solution:\n    def getSum(self, a: int, b: int) -> int:\n        \n        mask = 0xffffffff\n        \n        while b & mask:\n            carry = a &
```\nclass Solution:\n    def getSum(self, a: int, b: int) -> int:\n        \n        mask = 0xffffffff\n        \n        while b & mask:\n            carry = a & b\n            a = a ^ b\n            b = carry << 1\n        \n        # for overflow condition like\n        # -1\n        #  1\n        return (a & mask) if b > mask else a\n\n```
['Python3']