Bitwise interview question

Puzzles, Project