Datadog interview question

An exercise about linear interpolation with missing data points.