Question d’entretien chez Google

Find the longest string consisting of the same elements