/**
 * Given a dictionary of data, find the common elements in all its values and return a set of those common elements.
 */
fun findCommonElements(dictData: Map<String, Set<Int>>): Set<Int> {

    val commonElements = dictData.values.reduce { acc, set -> acc.intersect(set) }
    return commonElements.toSet()
}
/**
 * Given a dictionary of data, find the common elements in all its values and return a set of those common elements.
 */
fun findCommonElements(dictData: Map<String, Set<Int>>): Set<Int> {
/**
 * Given a dictionary of data, find the common elements in all its values and return a set of those common elements.
 */
fun findCommonElements(dictData: Map<String, Set<Int>>): Set<Int> {

    val commonElements = dictData.values.reduce { acc, set -> acc.intersect(set) }
    return commonElements.toSet()
}