Qualcomm interview question

Bit manipulation