Question d’entretien chez Microsoft

Tradition String Manipulation Question. But you need to use C++.