Expedia Group Interview Question

Longest repeating Substring of a String