Qualcomm interview question

Simple algorithm questions and system designing