Pergunta de entrevista da empresa Garmin

In Swift, implement a function that takes an array of integers representing the total distance covered each second, and returns the average in seconds per kilometer. Explain code snippets Finish the function type of questions All in swift