Qualcomm Interview Question

difficult