/**
 * This function takes two sets as input: 'photos' containing the names of the photographer's photos and 'names'
 * containing the names of the photographers. It returns a list of tuples representing the intersection between the sets.
 * Each tuple consists of a photo name and the photographer's name.
 *
 * @param photos A set containing the names of the photographer's photos.
 * @param names A set containing the names of the photographers.
 * @return A list of tuples representing the intersection between 'photos' and 'names'.
 */
fun createPhotographerList(photos: Set<String>, names: Set<String>): List<Pair<String, String>> {

    val intersection = mutableListOf<Pair<String, String>>() // List to store the intersection between 'photos' and 'names'

    // Iterate through each photo in 'photos'
    for (photo in photos) {
        // Iterate through each name in 'names'
        for (name in names) {
            // Check if the photo name is present in the photographer's name
            if (photo.toLowerCase() in name.toLowerCase()) {
                intersection.add(Pair(photo, name))
            }
        }
    }

    return intersection
}
/**
 * This function takes two sets as input: 'photos' containing the names of the photographer's photos and 'names'
 * containing the names of the photographers. It returns a list of tuples representing the intersection between the sets.
 * Each tuple consists of a photo name and the photographer's name.
 *
 * @param photos A set containing the names of the photographer's photos.
 * @param names A set containing the names of the photographers.
 * @return A list of tuples representing the intersection between 'photos' and 'names'.
 */
fun createPhotographerList(photos: Set<String>, names: Set<String>): List<Pair<String, String>> {
/**
 * This function takes two sets as input: 'photos' containing the names of the photographer's photos and 'names'
 * containing the names of the photographers. It returns a list of tuples representing the intersection between the sets.
 * Each tuple consists of a photo name and the photographer's name.
 *
 * @param photos A set containing the names of the photographer's photos.
 * @param names A set containing the names of the photographers.
 * @return A list of tuples representing the intersection between 'photos' and 'names'.
 */
fun createPhotographerList(photos: Set<String>, names: Set<String>): List<Pair<String, String>> {

    val intersection = mutableListOf<Pair<String, String>>() // List to store the intersection between 'photos' and 'names'

    // Iterate through each photo in 'photos'
    for (photo in photos) {
        // Iterate through each name in 'names'
        for (name in names) {
            // Check if the photo name is present in the photographer's name
            if (photo.toLowerCase() in name.toLowerCase()) {
                intersection.add(Pair(photo, name))
            }
        }
    }

    return intersection
}