/**
 * This function checks if a given birth year falls within the range of a photographer based on starting and ending year,
 * and also verifies if the age of the photographer is within a specified range.
 *
 * @param startYear The starting year of the range.
 * @param endYear The ending year of the range.
 * @param birthYear The birth year of the photographer.
 * @param age The age of the photographer.
 * @return True if the birth year falls within the range and the age is within the specified range, False otherwise.
 */
fun findInRange(startYear: Int, endYear: Int, birthYear: Int, age: Int): Boolean {

    var birthYearInRange = false
    var ageInRange = false

    // Check if the birth year falls within the range
    if (birthYear in startYear..endYear) {
        birthYearInRange = true
    }

    // Check if the age is within the specified range
    if (age in 18 until 60) {
        ageInRange = true
    }

    // Return True only if both conditions are met
    return birthYearInRange && ageInRange
}
/**
 * This function checks if a given birth year falls within the range of a photographer based on starting and ending year,
 * and also verifies if the age of the photographer is within a specified range.
 *
 * @param startYear The starting year of the range.
 * @param endYear The ending year of the range.
 * @param birthYear The birth year of the photographer.
 * @param age The age of the photographer.
 * @return True if the birth year falls within the range and the age is within the specified range, False otherwise.
 */
fun findInRange(startYear: Int, endYear: Int, birthYear: Int, age: Int): Boolean {
/**
 * This function checks if a given birth year falls within the range of a photographer based on starting and ending year,
 * and also verifies if the age of the photographer is within a specified range.
 *
 * @param startYear The starting year of the range.
 * @param endYear The ending year of the range.
 * @param birthYear The birth year of the photographer.
 * @param age The age of the photographer.
 * @return True if the birth year falls within the range and the age is within the specified range, False otherwise.
 */
fun findInRange(startYear: Int, endYear: Int, birthYear: Int, age: Int): Boolean {

    var birthYearInRange = false
    var ageInRange = false

    // Check if the birth year falls within the range
    if (birthYear in startYear..endYear) {
        birthYearInRange = true
    }

    // Check if the age is within the specified range
    if (age in 18 until 60) {
        ageInRange = true
    }

    // Return True only if both conditions are met
    return birthYearInRange && ageInRange
}