/**
 * This function captures photos for a photographer and ignores any photos that are not satisfied with the division condition.
 *
 * @param photos A list of tuples representing the dimensions of each photo in the format (height, width, isSatisfied).
 *               The third value in each tuple indicates whether the photo is satisfied with the division condition or not (true or false).
 * @return A list containing the dimensions of the captured photos which satisfied the division condition.
 */
fun capturePhotos(photos: List<Triple<Int, Int, Boolean>>): List<Pair<Int, Int>> {

    val capturedPhotos = mutableListOf<Pair<Int, Int>>()

    for (photo in photos) {
        val (height, width, isSatisfied) = photo

        // Skip the iteration if the photo is not satisfied with the division condition
        if (!isSatisfied) {
            continue
        }

        // Add the dimensions of the satisfied photo to the list of captured photos
        capturedPhotos.add(Pair(height, width))
    }

    return capturedPhotos
}
/**
 * This function captures photos for a photographer and ignores any photos that are not satisfied with the division condition.
 *
 * @param photos A list of tuples representing the dimensions of each photo in the format (height, width, isSatisfied).
 *               The third value in each tuple indicates whether the photo is satisfied with the division condition or not (true or false).
 * @return A list containing the dimensions of the captured photos which satisfied the division condition.
 */
fun capturePhotos(photos: List<Triple<Int, Int, Boolean>>): List<Pair<Int, Int>> {
/**
 * This function captures photos for a photographer and ignores any photos that are not satisfied with the division condition.
 *
 * @param photos A list of tuples representing the dimensions of each photo in the format (height, width, isSatisfied).
 *               The third value in each tuple indicates whether the photo is satisfied with the division condition or not (true or false).
 * @return A list containing the dimensions of the captured photos which satisfied the division condition.
 */
fun capturePhotos(photos: List<Triple<Int, Int, Boolean>>): List<Pair<Int, Int>> {

    val capturedPhotos = mutableListOf<Pair<Int, Int>>()

    for (photo in photos) {
        val (height, width, isSatisfied) = photo

        // Skip the iteration if the photo is not satisfied with the division condition
        if (!isSatisfied) {
            continue
        }

        // Add the dimensions of the satisfied photo to the list of captured photos
        capturedPhotos.add(Pair(height, width))
    }

    return capturedPhotos
}