Calculate the sum of two integers without using + or -. Use only bit manipulation.
In Python, handle negative numbers with a 32-bit mask: 0xFFFFFFFF.
💡 Pro tip: Understand this problem deeply — don't just memorize the code. Try explaining the approach out loud as if teaching a friend. If you can explain it simply, you truly understand it!
getSum(5, 3)
8
getSum(-2, 3)
1