I\'m trying to solve a question which takes an array of size n, and find the longest range of numbers in the array which have an even sum.
For example, for the array: