MSCI interview question

Detect Loop in the linked list Longest substring with non-repeating characters