Qualcomm Interview Question

Question on bit manipulation.