Pergunta de entrevista da empresa Noom

Tech final round: Given a list of GPS coordinates and timestamps for a workout, write a program (data model and algorithm) to determine the average splits for each mile/KM that the user ran. I was asked to consider gaps where a workout was paused and later resumed so that they would not count towards the split times.