Question d’entretien chez Amazon

Find the longest repeated substring in a given string.