/**
 * This function adds elements to a given set and returns the updated set.
 *
 * @param set The set to which elements need to be added.
 * @param elements The list of elements to be added.
 * @return The updated set after adding the elements.
 */
fun addElementsToSet(set: MutableSet<Any>, elements: List<Any>): MutableSet<Any> {

    elements.forEach { element ->
        set.add(element)
    }
    return set
}
/**
 * This function adds elements to a given set and returns the updated set.
 *
 * @param set The set to which elements need to be added.
 * @param elements The list of elements to be added.
 * @return The updated set after adding the elements.
 */
fun addElementsToSet(set: MutableSet<Any>, elements: List<Any>): MutableSet<Any> {
/**
 * This function adds elements to a given set and returns the updated set.
 *
 * @param set The set to which elements need to be added.
 * @param elements The list of elements to be added.
 * @return The updated set after adding the elements.
 */
fun addElementsToSet(set: MutableSet<Any>, elements: List<Any>): MutableSet<Any> {

    elements.forEach { element ->
        set.add(element)
    }
    return set
}