I am facing an issue that made me think a lot about my implementation in the code. So I have these two collections of data, one is the timestamp of train arrivals and departures