Tesla interview question

It was a simple data fitting problem in python.