Brute force with str.count solution in Clear category for Double Substring by PythonWithPI
length of the longest substring that non-overlapping repeats more than once.
for length in range(len(line),0,-1):
for start in range(len(line)-length+1):
Feb. 17, 2019