Question d’entretien chez Siemens

Very basic C++ and algorithm question