Pergunta de entrevista da empresa Amazon

Find the longest repeated substring in a given string.