/**
 * This function takes a list of photos and filters out the ones with low resolution.
 *
 * It uses the range() function and the continue statement to skip the processing of photos
 * with a resolution lower than 5 megapixels.
 *
 * @param photos A list of photos with their corresponding resolutions in megapixels.
 * @return A filtered list of photos that have a resolution greater than or equal to 5 megapixels.
 */
fun filterPhotos(photos: List<Pair<String, Int>>): List<Pair<String, Int>> {

    val filteredPhotos = mutableListOf<Pair<String, Int>>()
    
    for (photo in photos) {
        val resolution = photo.second
        
        if (resolution < 5) {
            continue
        }
        
        filteredPhotos.add(photo)
    }
    
    return filteredPhotos
}
/**
 * This function takes a list of photos and filters out the ones with low resolution.
 *
 * It uses the range() function and the continue statement to skip the processing of photos
 * with a resolution lower than 5 megapixels.
 *
 * @param photos A list of photos with their corresponding resolutions in megapixels.
 * @return A filtered list of photos that have a resolution greater than or equal to 5 megapixels.
 */
fun filterPhotos(photos: List<Pair<String, Int>>): List<Pair<String, Int>> {
/**
 * This function takes a list of photos and filters out the ones with low resolution.
 *
 * It uses the range() function and the continue statement to skip the processing of photos
 * with a resolution lower than 5 megapixels.
 *
 * @param photos A list of photos with their corresponding resolutions in megapixels.
 * @return A filtered list of photos that have a resolution greater than or equal to 5 megapixels.
 */
fun filterPhotos(photos: List<Pair<String, Int>>): List<Pair<String, Int>> {

    val filteredPhotos = mutableListOf<Pair<String, Int>>()
    
    for (photo in photos) {
        val resolution = photo.second
        
        if (resolution < 5) {
            continue
        }
        
        filteredPhotos.add(photo)
    }
    
    return filteredPhotos
}