Pregunta de entrevista de Meta

Sliding window problem with arithmetic solution