Sumo Logic interview question

Longest substring in the given string without repeating any duplicate characters EX: "ababcda" --> "abcd"