Qualcomm interview question

Coding questions in C++, Some Algorithm from STL