/**
 * Given a list of photos and a list of albums, remove all photos that are not included in any album.
 *
 * @param photos A list of photo names (strings).
 * @param albums A list of lists, where each inner list represents the photos in an album.
 * @return The updated list of photos with all photos that are not included in any album removed.
 */
fun removePhotos(photos: List<String>, albums: List<List<String>>): List<String> {

    // Create a set of all the photos included in any album
    val albumPhotos = albums.flatten().toSet()

    // Filter photos that are not in the album photos set
    val filteredPhotos = photos.filter { it in albumPhotos }

    return filteredPhotos
}
/**
 * Given a list of photos and a list of albums, remove all photos that are not included in any album.
 *
 * @param photos A list of photo names (strings).
 * @param albums A list of lists, where each inner list represents the photos in an album.
 * @return The updated list of photos with all photos that are not included in any album removed.
 */
fun removePhotos(photos: List<String>, albums: List<List<String>>): List<String> {
/**
 * Given a list of photos and a list of albums, remove all photos that are not included in any album.
 *
 * @param photos A list of photo names (strings).
 * @param albums A list of lists, where each inner list represents the photos in an album.
 * @return The updated list of photos with all photos that are not included in any album removed.
 */
fun removePhotos(photos: List<String>, albums: List<List<String>>): List<String> {

    // Create a set of all the photos included in any album
    val albumPhotos = albums.flatten().toSet()

    // Filter photos that are not in the album photos set
    val filteredPhotos = photos.filter { it in albumPhotos }

    return filteredPhotos
}