Google interview question

some bit manipulation question