Google interview question

Basic bitwise operations