/**
 * Given a list of photographs and a maximum resolution,
 * return a new list containing only the photographs with a resolution less than the maximum.
 *
 * @param photos A list of photograph tuples, where each tuple contains the name and resolution.
 * @param maxResolution The maximum resolution allowed.
 * @return A new list of photograph tuples with resolution less than the maximum.
 */
fun filterPhotographs(photos: List<Pair<String, Int>>, maxResolution: Int): List<Pair<String, Int>> {

    val filteredPhotos = mutableListOf<Pair<String, Int>>()
    for (photo in photos) {
        val (name, resolution) = photo
        if (resolution < maxResolution) {
            filteredPhotos.add(photo)
        }
    }
    return filteredPhotos
}
/**
 * Given a list of photographs and a maximum resolution,
 * return a new list containing only the photographs with a resolution less than the maximum.
 *
 * @param photos A list of photograph tuples, where each tuple contains the name and resolution.
 * @param maxResolution The maximum resolution allowed.
 * @return A new list of photograph tuples with resolution less than the maximum.
 */
fun filterPhotographs(photos: List<Pair<String, Int>>, maxResolution: Int): List<Pair<String, Int>> {
/**
 * Given a list of photographs and a maximum resolution,
 * return a new list containing only the photographs with a resolution less than the maximum.
 *
 * @param photos A list of photograph tuples, where each tuple contains the name and resolution.
 * @param maxResolution The maximum resolution allowed.
 * @return A new list of photograph tuples with resolution less than the maximum.
 */
fun filterPhotographs(photos: List<Pair<String, Int>>, maxResolution: Int): List<Pair<String, Int>> {

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