Amazon Interview Question

Find the longest repeated substring in a given string.