Microsoft interview question

Strings and UMLs