Domanda di colloquio di Microsoft

Three Design questions. Two string manipulations problems.