Datadog Interview Question

Write a function to interpolate missing values in a series.