Manhattan Associates interview question

Longest substring without repeating character, leetcode