結果 : longest repeated substring problem python