Pregunta de entrevista de Datadog

Write a function to interpolate missing values in a series.