Pergunta de entrevista da empresa Q3 Technologies

They asked to reverse a linked list(leetcode easy), and one more problem such as longest substring such that it has no repeating character, it was supposed to be solved in O(N).