class Solution { public: int getSum(int a, int b) { long long carry=b; while(b!=0){ carry=a&b; a=a^b; b=(carry&0xffffffff)<<1; } return a; } };