Datadog interview question

Write a function to interpolate missing values in a series.