Microsoft interview question

Three Design questions. Two string manipulations problems.