WD interview question

General bit manipulation questions.