Qualcomm interview question

explain your work