/**
 * This function takes in three parameters:
 * - locations: a list of geographical locations
 * - notAllowed: a list of geographical locations that are not allowed
 * - rainyDays: a list of boolean values indicating whether each location has rainy days (True for rainy, False for not rainy)
 *
 * It returns a list of locations that are both allowed and have no rainy days.
 */
fun findDesiredLocation(locations: List<String>, notAllowed: List<String>, rainyDays: List<Boolean>): List<String> {

    // Initialize a list to store the desired locations
    val desiredLocations = mutableListOf<String>()

    // Iterate over each location in the list of locations
    for ((index, location) in locations.withIndex()) {
        // Check if the location is allowed and has no rainy days
        if (location !in notAllowed && !rainyDays[index]) {
            // Append the location to the desiredLocations list
            desiredLocations.add(location)
        }
    }

    // Return the list of desired locations
    return desiredLocations
}
/**
 * This function takes in three parameters:
 * - locations: a list of geographical locations
 * - notAllowed: a list of geographical locations that are not allowed
 * - rainyDays: a list of boolean values indicating whether each location has rainy days (True for rainy, False for not rainy)
 *
 * It returns a list of locations that are both allowed and have no rainy days.
 */
fun findDesiredLocation(locations: List<String>, notAllowed: List<String>, rainyDays: List<Boolean>): List<String> {
/**
 * This function takes in three parameters:
 * - locations: a list of geographical locations
 * - notAllowed: a list of geographical locations that are not allowed
 * - rainyDays: a list of boolean values indicating whether each location has rainy days (True for rainy, False for not rainy)
 *
 * It returns a list of locations that are both allowed and have no rainy days.
 */
fun findDesiredLocation(locations: List<String>, notAllowed: List<String>, rainyDays: List<Boolean>): List<String> {

    // Initialize a list to store the desired locations
    val desiredLocations = mutableListOf<String>()

    // Iterate over each location in the list of locations
    for ((index, location) in locations.withIndex()) {
        // Check if the location is allowed and has no rainy days
        if (location !in notAllowed && !rainyDays[index]) {
            // Append the location to the desiredLocations list
            desiredLocations.add(location)
        }
    }

    // Return the list of desired locations
    return desiredLocations
}