Longest repeated substring

Sign in to test your solution.