/**
 * This function takes a list of temperature readings from different zones in a geological site and returns the zones
 * where the temperature is within the desired range.
 *
 * @param temperatureReadings A list of temperature readings from different zones in Celsius.
 * @return A list of zones where the temperature is within the desired range.
 *
 * Note:
 * The desired temperature range is between 20 and 30 degrees Celsius.
 */
fun calculateZoneTemperature(temperatureReadings: List<Double>): List<Int> {

    val desiredZones = mutableListOf<Int>()

    // Loop through each temperature reading in the list
    for ((index, temperature) in temperatureReadings.withIndex()) {
        // Check if the temperature is within the desired range
        if (temperature in 20.0..30.0) {
            // Add the zone number to the desiredZones list
            desiredZones.add(index + 1)
        }
    }

    return desiredZones
}
/**
 * This function takes a list of temperature readings from different zones in a geological site and returns the zones
 * where the temperature is within the desired range.
 *
 * @param temperatureReadings A list of temperature readings from different zones in Celsius.
 * @return A list of zones where the temperature is within the desired range.
 *
 * Note:
 * The desired temperature range is between 20 and 30 degrees Celsius.
 */
fun calculateZoneTemperature(temperatureReadings: List<Double>): List<Int> {
/**
 * This function takes a list of temperature readings from different zones in a geological site and returns the zones
 * where the temperature is within the desired range.
 *
 * @param temperatureReadings A list of temperature readings from different zones in Celsius.
 * @return A list of zones where the temperature is within the desired range.
 *
 * Note:
 * The desired temperature range is between 20 and 30 degrees Celsius.
 */
fun calculateZoneTemperature(temperatureReadings: List<Double>): List<Int> {

    val desiredZones = mutableListOf<Int>()

    // Loop through each temperature reading in the list
    for ((index, temperature) in temperatureReadings.withIndex()) {
        // Check if the temperature is within the desired range
        if (temperature in 20.0..30.0) {
            // Add the zone number to the desiredZones list
            desiredZones.add(index + 1)
        }
    }

    return desiredZones
}