Qualcomm interview question

Focusing on C / C++ programming