/**
 * This function takes a list of graphic designs and a list of changes. It modifies the designs
 * based on the changes provided and returns a pair containing the modified designs and the total number
 * of modifications made to the designs.
 *
 * @param designs A list of graphic designs.
 * @param changes A list of changes to be made in the designs.
 * @return A pair containing modified designs and the total number of modifications made.
 */
fun modifyDesigns(designs: MutableList<String>, changes: List<Pair<String, String>>): Pair<List<String>, Int> {

    var modifications = 0

    for (change in changes) {
        for (i in designs.indices) {
            if (designs[i].equals(change.first, ignoreCase = true)) {
                designs[i] = change.second
                modifications++
            }
        }
    }

    return Pair(designs, modifications)
}
/**
 * This function takes a list of graphic designs and a list of changes. It modifies the designs
 * based on the changes provided and returns a pair containing the modified designs and the total number
 * of modifications made to the designs.
 *
 * @param designs A list of graphic designs.
 * @param changes A list of changes to be made in the designs.
 * @return A pair containing modified designs and the total number of modifications made.
 */
fun modifyDesigns(designs: MutableList<String>, changes: List<Pair<String, String>>): Pair<List<String>, Int> {
/**
 * This function takes a list of graphic designs and a list of changes. It modifies the designs
 * based on the changes provided and returns a pair containing the modified designs and the total number
 * of modifications made to the designs.
 *
 * @param designs A list of graphic designs.
 * @param changes A list of changes to be made in the designs.
 * @return A pair containing modified designs and the total number of modifications made.
 */
fun modifyDesigns(designs: MutableList<String>, changes: List<Pair<String, String>>): Pair<List<String>, Int> {

    var modifications = 0

    for (change in changes) {
        for (i in designs.indices) {
            if (designs[i].equals(change.first, ignoreCase = true)) {
                designs[i] = change.second
                modifications++
            }
        }
    }

    return Pair(designs, modifications)
}