Meta interview question

Write algorithm to find patterns in strings.