/**
 * This function takes a photo and returns its type based on its resolution.
 *
 * @param photo A pair containing the width and height of the photo in pixels.
 * @return The type of the photo ('landscape', 'portrait', or 'square').
 *
 * Examples:
 * findPhotosType(Pair(800, 600)) // 'landscape'
 * findPhotosType(Pair(600, 800)) // 'portrait'
 * findPhotosType(Pair(500, 500)) // 'square'
 */
fun findPhotosType(photo: Pair<Int, Int>): String {

    val (width, height) = photo

    return when {
        width > height -> "landscape"
        width < height -> "portrait"
        else -> "square"
    }
}
/**
 * This function takes a photo and returns its type based on its resolution.
 *
 * @param photo A pair containing the width and height of the photo in pixels.
 * @return The type of the photo ('landscape', 'portrait', or 'square').
 *
 * Examples:
 * findPhotosType(Pair(800, 600)) // 'landscape'
 * findPhotosType(Pair(600, 800)) // 'portrait'
 * findPhotosType(Pair(500, 500)) // 'square'
 */
fun findPhotosType(photo: Pair<Int, Int>): String {
/**
 * This function takes a photo and returns its type based on its resolution.
 *
 * @param photo A pair containing the width and height of the photo in pixels.
 * @return The type of the photo ('landscape', 'portrait', or 'square').
 *
 * Examples:
 * findPhotosType(Pair(800, 600)) // 'landscape'
 * findPhotosType(Pair(600, 800)) // 'portrait'
 * findPhotosType(Pair(500, 500)) // 'square'
 */
fun findPhotosType(photo: Pair<Int, Int>): String {

    val (width, height) = photo

    return when {
        width > height -> "landscape"
        width < height -> "portrait"
        else -> "square"
    }
}