Longest_repeated_substring_problem