/**
 * This function takes a nested list of photos and a multiplier as inputs,
 * and returns a new nested list where each photo in the original list is
 * duplicated by the specified multiplier.
 *
 * @param photoList A nested list containing photos.
 * @param multiplier An integer specifying the duplication factor.
 * @return A nested list where each photo is duplicated by the specified multiplier.
 */
fun multiplyPhotos(photoList: List<List<Any>>, multiplier: Int): List<Any> {

    val result = mutableListOf<Any>()
    for (photo in photoList) {
        repeat(multiplier) {
            result.addAll(photo)
        }
    }
    return result
}
/**
 * This function takes a nested list of photos and a multiplier as inputs,
 * and returns a new nested list where each photo in the original list is
 * duplicated by the specified multiplier.
 *
 * @param photoList A nested list containing photos.
 * @param multiplier An integer specifying the duplication factor.
 * @return A nested list where each photo is duplicated by the specified multiplier.
 */
fun multiplyPhotos(photoList: List<List<Any>>, multiplier: Int): List<Any> {
/**
 * This function takes a nested list of photos and a multiplier as inputs,
 * and returns a new nested list where each photo in the original list is
 * duplicated by the specified multiplier.
 *
 * @param photoList A nested list containing photos.
 * @param multiplier An integer specifying the duplication factor.
 * @return A nested list where each photo is duplicated by the specified multiplier.
 */
fun multiplyPhotos(photoList: List<List<Any>>, multiplier: Int): List<Any> {

    val result = mutableListOf<Any>()
    for (photo in photoList) {
        repeat(multiplier) {
            result.addAll(photo)
        }
    }
    return result
}