Pergunta de entrevista da empresa Livongo Health

Given a string, return the longest repeating substring.