/**
 * You are working on a large architectural project. You have a set of plans for the initial design of the building,
 * and a set of changes that need to be made. Your task is to iterate over each plan and apply the corresponding change
 * if it exists. If a change does not exist for a plan, skip that plan and continue to the next one.
 *
 * @param plans A set of plans for the initial building design.
 * @param changes A set of changes that need to be made.
 * @return The updated set of plans after applying the changes.
 */
fun architectProject(plans: MutableSet<String>, changes: Set<String>): MutableSet<String> {

    val updatedPlans = plans.toMutableSet()

    for (plan in plans) {
        for (change in changes) {
            if (plan in change) {
                updatedPlans.remove(plan)
                updatedPlans.add(change)
                break
            }
        }
    }

    return updatedPlans
}
/**
 * You are working on a large architectural project. You have a set of plans for the initial design of the building,
 * and a set of changes that need to be made. Your task is to iterate over each plan and apply the corresponding change
 * if it exists. If a change does not exist for a plan, skip that plan and continue to the next one.
 *
 * @param plans A set of plans for the initial building design.
 * @param changes A set of changes that need to be made.
 * @return The updated set of plans after applying the changes.
 */
fun architectProject(plans: MutableSet<String>, changes: Set<String>): MutableSet<String> {
/**
 * You are working on a large architectural project. You have a set of plans for the initial design of the building,
 * and a set of changes that need to be made. Your task is to iterate over each plan and apply the corresponding change
 * if it exists. If a change does not exist for a plan, skip that plan and continue to the next one.
 *
 * @param plans A set of plans for the initial building design.
 * @param changes A set of changes that need to be made.
 * @return The updated set of plans after applying the changes.
 */
fun architectProject(plans: MutableSet<String>, changes: Set<String>): MutableSet<String> {

    val updatedPlans = plans.toMutableSet()

    for (plan in plans) {
        for (change in changes) {
            if (plan in change) {
                updatedPlans.remove(plan)
                updatedPlans.add(change)
                break
            }
        }
    }

    return updatedPlans
}