Microsoft Interview Question

Three Design questions. Two string manipulations problems.