/**
 * Determines if an astronomer can go stargazing based on the following conditions:
 * - Temperatures are below 0 and visibility is greater than or equal to 2.
 * - Temperatures are between -10 and 10 (inclusive) and visibility is greater than 5.
 * - Temperatures are above 10 and visibility is greater than 10.
 *
 * @param temperatures A list of integer values representing temperatures.
 * @param visibility The visibility level.
 * @return True if stargazing is possible, False otherwise.
 */
fun isStargazingPossible(temperatures: List<Int>, visibility: Int): Boolean {

    for (temp in temperatures) {
        if ((temp < 0 && visibility >= 2) || (-10 <= temp && temp <= 10 && visibility > 5) || (temp > 10 && visibility > 10)) {
            return true
        }
    }
    return false
}
/**
 * Determines if an astronomer can go stargazing based on the following conditions:
 * - Temperatures are below 0 and visibility is greater than or equal to 2.
 * - Temperatures are between -10 and 10 (inclusive) and visibility is greater than 5.
 * - Temperatures are above 10 and visibility is greater than 10.
 *
 * @param temperatures A list of integer values representing temperatures.
 * @param visibility The visibility level.
 * @return True if stargazing is possible, False otherwise.
 */
fun isStargazingPossible(temperatures: List<Int>, visibility: Int): Boolean {
/**
 * Determines if an astronomer can go stargazing based on the following conditions:
 * - Temperatures are below 0 and visibility is greater than or equal to 2.
 * - Temperatures are between -10 and 10 (inclusive) and visibility is greater than 5.
 * - Temperatures are above 10 and visibility is greater than 10.
 *
 * @param temperatures A list of integer values representing temperatures.
 * @param visibility The visibility level.
 * @return True if stargazing is possible, False otherwise.
 */
fun isStargazingPossible(temperatures: List<Int>, visibility: Int): Boolean {

    for (temp in temperatures) {
        if ((temp < 0 && visibility >= 2) || (-10 <= temp && temp <= 10 && visibility > 5) || (temp > 10 && visibility > 10)) {
            return true
        }
    }
    return false
}