/**
 * Given a dictionary containing information about a photographer, returns a Pair
 * with the name and the list of photos taken by the photographer.
 *
 * @param photographerInfo A dictionary containing the following keys:
 * - 'name' (String): The name of the photographer.
 * - 'photos' (List<String>): A list of strings representing the photos taken by the photographer.
 *
 * @return A Pair with two elements:
 * - The name of the photographer.
 * - A list of strings representing the photos taken by the photographer.
 *
 * @sample
 * val photographerInfo = mapOf("name" to "John", "photos" to listOf("portrait1.jpg", "landscape2.jpg"))
 * getPhotographerPhotos(photographerInfo) // Output: Pair("John", listOf("portrait1.jpg", "landscape2.jpg"))
 */
fun getPhotographerPhotos(photographerInfo: Map<String, Any>): Pair<String, List<String>> {

    val name = photographerInfo["name"] as String  // Accessing the name element from the dictionary
    val photos = photographerInfo["photos"] as List<String>  // Accessing the photos element from the dictionary

    return Pair(name, photos)  // Creating a Pair with the name and photos list
}
/**
 * Given a dictionary containing information about a photographer, returns a Pair
 * with the name and the list of photos taken by the photographer.
 *
 * @param photographerInfo A dictionary containing the following keys:
 * - 'name' (String): The name of the photographer.
 * - 'photos' (List<String>): A list of strings representing the photos taken by the photographer.
 *
 * @return A Pair with two elements:
 * - The name of the photographer.
 * - A list of strings representing the photos taken by the photographer.
 *
 * @sample
 * val photographerInfo = mapOf("name" to "John", "photos" to listOf("portrait1.jpg", "landscape2.jpg"))
 * getPhotographerPhotos(photographerInfo) // Output: Pair("John", listOf("portrait1.jpg", "landscape2.jpg"))
 */
fun getPhotographerPhotos(photographerInfo: Map<String, Any>): Pair<String, List<String>> {
/**
 * Given a dictionary containing information about a photographer, returns a Pair
 * with the name and the list of photos taken by the photographer.
 *
 * @param photographerInfo A dictionary containing the following keys:
 * - 'name' (String): The name of the photographer.
 * - 'photos' (List<String>): A list of strings representing the photos taken by the photographer.
 *
 * @return A Pair with two elements:
 * - The name of the photographer.
 * - A list of strings representing the photos taken by the photographer.
 *
 * @sample
 * val photographerInfo = mapOf("name" to "John", "photos" to listOf("portrait1.jpg", "landscape2.jpg"))
 * getPhotographerPhotos(photographerInfo) // Output: Pair("John", listOf("portrait1.jpg", "landscape2.jpg"))
 */
fun getPhotographerPhotos(photographerInfo: Map<String, Any>): Pair<String, List<String>> {

    val name = photographerInfo["name"] as String  // Accessing the name element from the dictionary
    val photos = photographerInfo["photos"] as List<String>  // Accessing the photos element from the dictionary

    return Pair(name, photos)  // Creating a Pair with the name and photos list
}