Contentsquare interview question

Exercice algorithmique de string matching