Python Solution
Python code as follows:\n\nclass Solution(object):\n    def getSum(self, a, b):\n        """\n        :type a: int\n        :type b: int\n        :rtype: int\n 
Python code as follows:\n```\nclass Solution(object):\n    def getSum(self, a, b):\n        """\n        :type a: int\n        :type b: int\n        :rtype: int\n        """\n        MAX_INT = 0x7FFFFFFF\n        MIN_INT = 0x80000000\n        MASK = 0x100000000\n        while b:\n            a, b = (a ^ b) % MASK, ((a & b) << 1) % MASK\n        return a if a <= MAX_INT else ~((a % MIN_INT) ^ MAX_INT)\n```
['Python']