Pergunta de entrevista da empresa Microsoft

Three Design questions. Two string manipulations problems.