Meta Interview Question

Write algorithm to find patterns in strings.