/**
 * This function takes a list of suspects and a list of photos and returns the suspects who are present in all the photos.
 *
 * @param suspects A list of names of suspects.
 * @param photos A list of lists, each containing the names of suspects present in a photo.
 * @return A list of suspects who are present in all the photos.
 */
fun findSuspects(suspects: List<String>, photos: List<List<String>>): List<String> {

    // Initialize an empty set to store the common suspects
    var commonSuspects = suspects.toSet()

    // Iterate over each photo
    for (photo in photos) {
        // Create a set of suspects present in the current photo
        val photoSuspects = photo.toSet()

        // Find the intersection of common suspects and suspects in the current photo
        commonSuspects = commonSuspects.intersect(photoSuspects)
    }

    return commonSuspects.toList()
}
/**
 * This function takes a list of suspects and a list of photos and returns the suspects who are present in all the photos.
 *
 * @param suspects A list of names of suspects.
 * @param photos A list of lists, each containing the names of suspects present in a photo.
 * @return A list of suspects who are present in all the photos.
 */
fun findSuspects(suspects: List<String>, photos: List<List<String>>): List<String> {
/**
 * This function takes a list of suspects and a list of photos and returns the suspects who are present in all the photos.
 *
 * @param suspects A list of names of suspects.
 * @param photos A list of lists, each containing the names of suspects present in a photo.
 * @return A list of suspects who are present in all the photos.
 */
fun findSuspects(suspects: List<String>, photos: List<List<String>>): List<String> {

    // Initialize an empty set to store the common suspects
    var commonSuspects = suspects.toSet()

    // Iterate over each photo
    for (photo in photos) {
        // Create a set of suspects present in the current photo
        val photoSuspects = photo.toSet()

        // Find the intersection of common suspects and suspects in the current photo
        commonSuspects = commonSuspects.intersect(photoSuspects)
    }

    return commonSuspects.toList()
}