Samsara Interview Question

Implement a class to keep track of time-series data