Cisco interview question

longest substring problem.