Qualcomm Interview Question

C programming and memory questions.