Amazon interview question

Leetcode- "longest substring without tepeating characters"