Qualcomm interview question

My previous project