Apple interview question

Revert an integer bitwise