Diebold Nixdorf interview question

Regarding C++