Pergunta de entrevista da empresa Qualcomm

At first, I thought there will be some difficult algorithm question, it turns out only several basic algorithm and data structure question.