Question d’entretien chez CME Group

Q: Given a string, find the largest substring with pattern.