Infosys interview question

longest substring without repeating characters