/**
 * Given two sets, calculate the intersection of the sets.
 *
 * @param setA A set.
 * @param setB A set.
 * @return The intersection of setA and setB.
 */
fun calculateIntersection(setA: Set<Any>, setB: Set<Any>): Set<Any> {

    // Create an empty set to store the intersection
    val intersection = mutableSetOf<Any>()

    // Iterate over the elements in setA
    for (element in setA) {
        // Check if the current element is also present in setB
        if (element in setB) {
            // Add the element to the intersection set
            intersection.add(element)
        }
    }

    return intersection
}
/**
 * Given two sets, calculate the intersection of the sets.
 *
 * @param setA A set.
 * @param setB A set.
 * @return The intersection of setA and setB.
 */
fun calculateIntersection(setA: Set<Any>, setB: Set<Any>): Set<Any> {
/**
 * Given two sets, calculate the intersection of the sets.
 *
 * @param setA A set.
 * @param setB A set.
 * @return The intersection of setA and setB.
 */
fun calculateIntersection(setA: Set<Any>, setB: Set<Any>): Set<Any> {

    // Create an empty set to store the intersection
    val intersection = mutableSetOf<Any>()

    // Iterate over the elements in setA
    for (element in setA) {
        // Check if the current element is also present in setB
        if (element in setB) {
            // Add the element to the intersection set
            intersection.add(element)
        }
    }

    return intersection
}