/**
 * This function takes a set of historical years and a target year as input, and determines if the
 * target_year is present in the set of years. If it is present, it returns true, otherwise it returns false.
 *
 * @param years A set of historical years.
 * @param targetYear The year to search for.
 * @return true if the targetYear is present in the set, false otherwise.
 */
fun checkForYear(years: Set<Int>, targetYear: Int): Boolean {

    for (year in years) {
        if (year == targetYear) {
            return true
        }
    }
    return false
}
/**
 * This function takes a set of historical years and a target year as input, and determines if the
 * target_year is present in the set of years. If it is present, it returns true, otherwise it returns false.
 *
 * @param years A set of historical years.
 * @param targetYear The year to search for.
 * @return true if the targetYear is present in the set, false otherwise.
 */
fun checkForYear(years: Set<Int>, targetYear: Int): Boolean {
/**
 * This function takes a set of historical years and a target year as input, and determines if the
 * target_year is present in the set of years. If it is present, it returns true, otherwise it returns false.
 *
 * @param years A set of historical years.
 * @param targetYear The year to search for.
 * @return true if the targetYear is present in the set, false otherwise.
 */
fun checkForYear(years: Set<Int>, targetYear: Int): Boolean {

    for (year in years) {
        if (year == targetYear) {
            return true
        }
    }
    return false
}