Question d’entretien chez ThoughtSpot

Longest Happy Prefix in a given string