Media.net Interview Question

Find the longest substring having even sum in array