/**
 * This function finds the common exercises between two Physical Therapist's exercise plans.
 * It takes in two lists of exercises and returns a list of exercises that are common to both plans.
 */
fun findCommonExercises(exercisesListA: List<String>, exercisesListB: List<String>): List<String> {

    val commonExercises = mutableListOf<String>()

    for (exerciseA in exercisesListA) {
        for (exerciseB in exercisesListB) {
            if (exerciseA == exerciseB) {
                commonExercises.add(exerciseA)
            }
        }
    }

    return commonExercises
}
/**
 * This function finds the common exercises between two Physical Therapist's exercise plans.
 * It takes in two lists of exercises and returns a list of exercises that are common to both plans.
 */
fun findCommonExercises(exercisesListA: List<String>, exercisesListB: List<String>): List<String> {
/**
 * This function finds the common exercises between two Physical Therapist's exercise plans.
 * It takes in two lists of exercises and returns a list of exercises that are common to both plans.
 */
fun findCommonExercises(exercisesListA: List<String>, exercisesListB: List<String>): List<String> {

    val commonExercises = mutableListOf<String>()

    for (exerciseA in exercisesListA) {
        for (exerciseB in exercisesListB) {
            if (exerciseA == exerciseB) {
                commonExercises.add(exerciseA)
            }
        }
    }

    return commonExercises
}