Pergunta de entrevista da empresa Datadog

Write a function to interpolate missing values in a series.