public int aplusb(int a, int b) { // write your code here, try to do it without arithmetic operators. if(b == 0) { return a; }else { return repeat(a, b); } } private int repeat(int a, int b) { int _a = a ^ b; int _b = (a & b) << 1; if(b != 0) { return repeat(_a, _b); }else { return _a; } } };