Question d’entretien chez Microsoft

Three Design questions. Two string manipulations problems.