/**
 * This function takes a list of years and a 2D list of temperature data for each year.
 * It finds the highest temperature recorded across all years.
 * The temperature data must be in Celsius.
 */
fun findHighestTemperature(years: List<Int>, data: List<List<Double>>): Double {

    var highestTemperature = Double.NEGATIVE_INFINITY

    for (i in data.indices) {
        for (temperature in data[i]) {
            if (temperature > highestTemperature) {
                highestTemperature = temperature
            }
        }
    }

    return highestTemperature
}
/**
 * This function takes a list of years and a 2D list of temperature data for each year.
 * It finds the highest temperature recorded across all years.
 * The temperature data must be in Celsius.
 */
fun findHighestTemperature(years: List<Int>, data: List<List<Double>>): Double {
/**
 * This function takes a list of years and a 2D list of temperature data for each year.
 * It finds the highest temperature recorded across all years.
 * The temperature data must be in Celsius.
 */
fun findHighestTemperature(years: List<Int>, data: List<List<Double>>): Double {

    var highestTemperature = Double.NEGATIVE_INFINITY

    for (i in data.indices) {
        for (temperature in data[i]) {
            if (temperature > highestTemperature) {
                highestTemperature = temperature
            }
        }
    }

    return highestTemperature
}