結果 : find the longest substring in python