Domanda di colloquio di Tesla

Python Coding assignment, time series handling and I failed that