Pergunta de entrevista da empresa Microsoft

Given a string, return the length of the longest substring without repeating characters