Qualcomm Interview Question

basic concept qns