Pergunta de entrevista da empresa Zeta

Rotten oranges and maximum subarray sum with array length equals k