Java bit operation
\n    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
```\n    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    }\n```
[]