Zeta interview question

Rotten oranges and maximum subarray sum with array length equals k