/**
 * This function finds the intersection of two sets using the AND operator.
 *
 * @param set1 The first input set
 * @param set2 The second input set
 * @return A new set containing the elements common to both input sets
 */
fun intersectionOfSetsAndAndOperator(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Initialize an empty set to store the intersection
    val intersection = mutableSetOf<Int>()

    // Loop through each element in set1
    for (element in set1) {
        // Check if the element exists in both set1 and set2 using the AND operator
        if (element in set2) {
            intersection.add(element)
        }
    }

    return intersection
}
/**
 * This function finds the intersection of two sets using the AND operator.
 *
 * @param set1 The first input set
 * @param set2 The second input set
 * @return A new set containing the elements common to both input sets
 */
fun intersectionOfSetsAndAndOperator(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function finds the intersection of two sets using the AND operator.
 *
 * @param set1 The first input set
 * @param set2 The second input set
 * @return A new set containing the elements common to both input sets
 */
fun intersectionOfSetsAndAndOperator(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Initialize an empty set to store the intersection
    val intersection = mutableSetOf<Int>()

    // Loop through each element in set1
    for (element in set1) {
        // Check if the element exists in both set1 and set2 using the AND operator
        if (element in set2) {
            intersection.add(element)
        }
    }

    return intersection
}