Pergunta de entrevista da empresa ByteDance

get the longest unrepeated substring of the parent string