Qualcomm interview question

nothing really difficult