Question d’entretien chez Amazon

Technical question about most common repeating subsequence.