/**
 * This exercise asks the artist to find the intersection of two sets and return the result.
 * The intersection of two sets is the set of elements that are common to both sets.
 * In this exercise, set1 and set2 are given as the input parameters.
 * The artist needs to write Kotlin code to find the intersection of set1 and set2 and return the result.
 *
 * Example:
 * input:
 * set1 = setOf(1, 2, 3, 4, 5)
 * set2 = setOf(4, 5, 6, 7, 8)
 *
 * output:
 * [4, 5]
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}
/**
 * This exercise asks the artist to find the intersection of two sets and return the result.
 * The intersection of two sets is the set of elements that are common to both sets.
 * In this exercise, set1 and set2 are given as the input parameters.
 * The artist needs to write Kotlin code to find the intersection of set1 and set2 and return the result.
 *
 * Example:
 * input:
 * set1 = setOf(1, 2, 3, 4, 5)
 * set2 = setOf(4, 5, 6, 7, 8)
 *
 * output:
 * [4, 5]
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This exercise asks the artist to find the intersection of two sets and return the result.
 * The intersection of two sets is the set of elements that are common to both sets.
 * In this exercise, set1 and set2 are given as the input parameters.
 * The artist needs to write Kotlin code to find the intersection of set1 and set2 and return the result.
 *
 * Example:
 * input:
 * set1 = setOf(1, 2, 3, 4, 5)
 * set2 = setOf(4, 5, 6, 7, 8)
 *
 * output:
 * [4, 5]
 */
fun intersectionOfSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}