Ericsson interview question

C++ programming tests. Short question and time limited to answer!