/**
 * This function finds the intersection of two sets using list comprehension and iterating through sets.
 *
 * @param s1 the first set
 * @param s2 the second set
 * @return a list containing the common elements found in both sets
 */
fun intersectionSets(s1: Set<Any>, s2: Set<Any>): List<Any> {

    val intersection = s1.filter { it in s2 } // Use list comprehension to iterate through s1 and check if each element exists in s2
    return intersection
}
/**
 * This function finds the intersection of two sets using list comprehension and iterating through sets.
 *
 * @param s1 the first set
 * @param s2 the second set
 * @return a list containing the common elements found in both sets
 */
fun intersectionSets(s1: Set<Any>, s2: Set<Any>): List<Any> {
/**
 * This function finds the intersection of two sets using list comprehension and iterating through sets.
 *
 * @param s1 the first set
 * @param s2 the second set
 * @return a list containing the common elements found in both sets
 */
fun intersectionSets(s1: Set<Any>, s2: Set<Any>): List<Any> {

    val intersection = s1.filter { it in s2 } // Use list comprehension to iterate through s1 and check if each element exists in s2
    return intersection
}