/**
 * Filters a list of photos based on a resolution threshold.
 *
 * @param photos A list of maps representing photos, each with 'file_size' and 'resolution' keys.
 * @param resolutionThreshold The minimum resolution value to keep a photo.
 * @return A new list of filtered photos.
 */
fun filterPhotos(photos: List<Map<String, Any>>, resolutionThreshold: Int): List<Map<String, Any>> {

    val filteredPhotos = mutableListOf<Map<String, Any>>()

    for (photo in photos) {
        if (photo["resolution"] as Int >= resolutionThreshold) {
            filteredPhotos.add(photo)
        }
    }

    return filteredPhotos
}
/**
 * Filters a list of photos based on a resolution threshold.
 *
 * @param photos A list of maps representing photos, each with 'file_size' and 'resolution' keys.
 * @param resolutionThreshold The minimum resolution value to keep a photo.
 * @return A new list of filtered photos.
 */
fun filterPhotos(photos: List<Map<String, Any>>, resolutionThreshold: Int): List<Map<String, Any>> {
/**
 * Filters a list of photos based on a resolution threshold.
 *
 * @param photos A list of maps representing photos, each with 'file_size' and 'resolution' keys.
 * @param resolutionThreshold The minimum resolution value to keep a photo.
 * @return A new list of filtered photos.
 */
fun filterPhotos(photos: List<Map<String, Any>>, resolutionThreshold: Int): List<Map<String, Any>> {

    val filteredPhotos = mutableListOf<Map<String, Any>>()

    for (photo in photos) {
        if (photo["resolution"] as Int >= resolutionThreshold) {
            filteredPhotos.add(photo)
        }
    }

    return filteredPhotos
}