6 line java solution
public int getSum(int a, int b) {\n        while (b != 0) {\n            int c = a & b;\n            a = a ^ b;\n            b = c << 1;\n        }\n        ret
    public int getSum(int a, int b) {\n        while (b != 0) {\n            int c = a & b;\n            a = a ^ b;\n            b = c << 1;\n        }\n        return a;\n    }
['Java']