Pergunta de entrevista da empresa Media.net

Find the longest substring having even sum in array