Qualcomm interview question

My corrunt lab's activity