/**
 * Given a list of exercises and a duration, update the exercises list by adding the duration to each exercise.
 *
 * @param exercises List of exercises to update
 * @param duration Duration to be added to each exercise
 * @return Updated list of exercises
 */
fun updateExercises(exercises: MutableList<String>, duration: Int): List<String> {

    for (i in exercises.indices) {
        exercises[i] = "${exercises[i]} for $duration minutes"
    }
    return exercises
}
/**
 * Given a list of exercises and a duration, update the exercises list by adding the duration to each exercise.
 *
 * @param exercises List of exercises to update
 * @param duration Duration to be added to each exercise
 * @return Updated list of exercises
 */
fun updateExercises(exercises: MutableList<String>, duration: Int): List<String> {
/**
 * Given a list of exercises and a duration, update the exercises list by adding the duration to each exercise.
 *
 * @param exercises List of exercises to update
 * @param duration Duration to be added to each exercise
 * @return Updated list of exercises
 */
fun updateExercises(exercises: MutableList<String>, duration: Int): List<String> {

    for (i in exercises.indices) {
        exercises[i] = "${exercises[i]} for $duration minutes"
    }
    return exercises
}