Question d’entretien chez Media.net

Find the longest substring having even sum in array