Amazon Interview Question

Even Subarray (Coding Question to complete)