Media.net interview question

Find the longest substring having even sum in array