/**
 * This function determines the exercises a Physical Therapist should assign to a patient, given the number of repetitions
 * and sets they need to perform.
 *
 * @param reps an integer representing the number of repetitions
 * @param sets an integer representing the number of sets
 * @return a list of exercises that the therapist should assign to the patient
 */
fun determineExercises(reps: Int, sets: Int): List<String> {

    val exercises = listOf("Squats", "Push-ups", "Lunges", "Planks", "Sit-ups")
    val assignedExercises = mutableListOf<String>()

    for (rep in 1..reps) {
        for (set in 1..sets) {
            assignedExercises.add("Set $set: ${exercises[rep % exercises.size]}")
        }
    }

    return assignedExercises
}
/**
 * This function determines the exercises a Physical Therapist should assign to a patient, given the number of repetitions
 * and sets they need to perform.
 *
 * @param reps an integer representing the number of repetitions
 * @param sets an integer representing the number of sets
 * @return a list of exercises that the therapist should assign to the patient
 */
fun determineExercises(reps: Int, sets: Int): List<String> {
/**
 * This function determines the exercises a Physical Therapist should assign to a patient, given the number of repetitions
 * and sets they need to perform.
 *
 * @param reps an integer representing the number of repetitions
 * @param sets an integer representing the number of sets
 * @return a list of exercises that the therapist should assign to the patient
 */
fun determineExercises(reps: Int, sets: Int): List<String> {

    val exercises = listOf("Squats", "Push-ups", "Lunges", "Planks", "Sit-ups")
    val assignedExercises = mutableListOf<String>()

    for (rep in 1..reps) {
        for (set in 1..sets) {
            assignedExercises.add("Set $set: ${exercises[rep % exercises.size]}")
        }
    }

    return assignedExercises
}