Question d’entretien chez think-cell

Solve a problem in C++ while making sure it will pass all case.