Python 3
\nclass Solution:\n    def getSum(self, a, b):\n        """\n        :type a: int\n        :type b: int\n        :rtype: int\n        """\n\n        if a == -b:
```\nclass Solution:\n    def getSum(self, a, b):\n        """\n        :type a: int\n        :type b: int\n        :rtype: int\n        """\n\n        if a == -b:\n            return 0\n        if abs(a) > abs(b):\n            a, b = b, a\n        if a < 0:\n            return -self.getSum(-a, -b)\n        while b:\n            c = a & b\n            a ^= b\n            b = c << 1\n        return a\n\n\n\n```
[]