Qlik interview question

Solve a specific puzzle with C++.