Capgemini Interview Question

Solve this pseudo code for the c++ code?