Pergunta de entrevista da empresa Amazon

“Given an array, find the length of the longest substring without repeating characters.”