Question d’entretien chez think-cell

Solve a task using C++ standard library.