Datadog interview question

Coding I: Code a sliding window function to sum a 3 point coords with an specific k size.