Question d’entretien chez Amazon

Find substring within words, efficiently.