Pergunta de entrevista da empresa Epic

Write code to determine the repeating strings and their count in the sentence.