Qualcomm interview question

basic concept qns