The Trade Desk interview question

implementing linear interpolation in python