Tesla interview question

Write a series of functions in python for data analysis