TIAA interview question

One question on Design Pattern, Regex, some little coding question and nothing else