/**
 * This function takes two sets as input and returns the common elements present in both sets.
 *
 * @param set1 A set of elements.
 * @param set2 Another set of elements.
 * @return A set containing the common elements present in both input sets.
 *
 * Example:
 * calculateCommonSets(setOf(1, 2, 3, 4, 5), setOf(4, 5, 6, 7)) // Output: setOf(4, 5)
 */
fun calculateCommonSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}
/**
 * This function takes two sets as input and returns the common elements present in both sets.
 *
 * @param set1 A set of elements.
 * @param set2 Another set of elements.
 * @return A set containing the common elements present in both input sets.
 *
 * Example:
 * calculateCommonSets(setOf(1, 2, 3, 4, 5), setOf(4, 5, 6, 7)) // Output: setOf(4, 5)
 */
fun calculateCommonSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This function takes two sets as input and returns the common elements present in both sets.
 *
 * @param set1 A set of elements.
 * @param set2 Another set of elements.
 * @return A set containing the common elements present in both input sets.
 *
 * Example:
 * calculateCommonSets(setOf(1, 2, 3, 4, 5), setOf(4, 5, 6, 7)) // Output: setOf(4, 5)
 */
fun calculateCommonSets(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    return set1.intersect(set2)
}