Pergunta de entrevista da empresa Tesla

It was a simple data fitting problem in python.