Pregunta de entrevista de Accenture

Longest substring problem, and array related problem