Diebold Nixdorf Interview Question

Regarding C++