/**
 * Find the common works of the given artists.
 *
 * @param artist1 Set of works for artist 1
 * @param artist2 Set of works for artist 2
 * @param artist3 Set of works for artist 3
 * @param artist4 Set of works for artist 4
 * @param artist5 Set of works for artist 5
 * @return A set containing the common works of all the given artists
 */
fun findCommonWorks(artist1: Set<String>, artist2: Set<String>, artist3: Set<String>, artist4: Set<String>, artist5: Set<String>): Set<String> {

    val commonWorks = artist1.intersect(artist2).intersect(artist3).intersect(artist4).intersect(artist5)
    return commonWorks
}
/**
 * Find the common works of the given artists.
 *
 * @param artist1 Set of works for artist 1
 * @param artist2 Set of works for artist 2
 * @param artist3 Set of works for artist 3
 * @param artist4 Set of works for artist 4
 * @param artist5 Set of works for artist 5
 * @return A set containing the common works of all the given artists
 */
fun findCommonWorks(artist1: Set<String>, artist2: Set<String>, artist3: Set<String>, artist4: Set<String>, artist5: Set<String>): Set<String> {
/**
 * Find the common works of the given artists.
 *
 * @param artist1 Set of works for artist 1
 * @param artist2 Set of works for artist 2
 * @param artist3 Set of works for artist 3
 * @param artist4 Set of works for artist 4
 * @param artist5 Set of works for artist 5
 * @return A set containing the common works of all the given artists
 */
fun findCommonWorks(artist1: Set<String>, artist2: Set<String>, artist3: Set<String>, artist4: Set<String>, artist5: Set<String>): Set<String> {

    val commonWorks = artist1.intersect(artist2).intersect(artist3).intersect(artist4).intersect(artist5)
    return commonWorks
}