Pregunta de entrevista de Media.net

Find the longest substring having even sum in array