Expedia Group interview question

Longest repeating Substring of a String