Indeed interview question

find a pattern that matches in string.