Given two integers a, b, find The sum of them, BUT You are not allowed to use the operators + and –
- The numbers (a,b) may be positive , negative values or zeros .
- Returning value will be an integer .
- Java: the following methods are prohibited: addExact, average, collect, decrement, increment, nextAfter, nextDown, nextUp, reduce, subtractExact, sum, summing .
The following classes are prohibited: BigDecimal and BigInteger .
The solution in Java code
Test cases to validate our solution