Datadog Interview Question

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