Zeta Interview Question

Rotten oranges and maximum subarray sum with array length equals k