Tesla Interview Question

It was a simple data fitting problem in python.