Qualcomm interview question

difficult