LeetCode
Number Complement
Click
here
for an explanation.