Double Substring2 Double Substring2
English

Find a length the longest substring that repeats more than once.

Input: String.

Output: Int.

Example:

double_substring('aaaa') == 2
double_substring('abc') == 0
double_substring('aghtfghkofgh') == 3 # fgh