Qualcomm interview question

Questions were based bitwise operations.