Pergunta de entrevista da empresa Tesla

Python Coding assignment, time series handling and I failed that