/**
 * Given a dictionary containing the photographer's name and their corresponding photo count,
 * return a tuple containing the names of the photographers who have more than one photo.
 *
 * @param photoDict A dictionary containing the photographer's name and their corresponding photo count.
 * @return A tuple containing the names of the photographers with more than one photo.
 *
 * Example:
 * photoDict = mapOf("John" to 5, "Emily" to 2, "Michael" to 3, "Sophia" to 1)
 * tupleIntersectionPhotographer(photoDict) // Returns ('John', 'Emily', 'Michael')
 */
fun tupleIntersectionPhotographer(photoDict: Map<String, Int>): List<String> {

    val photographers = mutableListOf<String>()
    for ((name, count) in photoDict) {
        if (count > 1) {
            photographers.add(name)
        }
    }
    return photographers
}
/**
 * Given a dictionary containing the photographer's name and their corresponding photo count,
 * return a tuple containing the names of the photographers who have more than one photo.
 *
 * @param photoDict A dictionary containing the photographer's name and their corresponding photo count.
 * @return A tuple containing the names of the photographers with more than one photo.
 *
 * Example:
 * photoDict = mapOf("John" to 5, "Emily" to 2, "Michael" to 3, "Sophia" to 1)
 * tupleIntersectionPhotographer(photoDict) // Returns ('John', 'Emily', 'Michael')
 */
fun tupleIntersectionPhotographer(photoDict: Map<String, Int>): List<String> {
/**
 * Given a dictionary containing the photographer's name and their corresponding photo count,
 * return a tuple containing the names of the photographers who have more than one photo.
 *
 * @param photoDict A dictionary containing the photographer's name and their corresponding photo count.
 * @return A tuple containing the names of the photographers with more than one photo.
 *
 * Example:
 * photoDict = mapOf("John" to 5, "Emily" to 2, "Michael" to 3, "Sophia" to 1)
 * tupleIntersectionPhotographer(photoDict) // Returns ('John', 'Emily', 'Michael')
 */
fun tupleIntersectionPhotographer(photoDict: Map<String, Int>): List<String> {

    val photographers = mutableListOf<String>()
    for ((name, count) in photoDict) {
        if (count > 1) {
            photographers.add(name)
        }
    }
    return photographers
}