/**
 * This function takes in two lists of cities and returns a list of common cities in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {

    // Initialize an empty list to store the common cities
    val commonCities = mutableListOf<String>()

    // Iterate through each city in cities1
    for (city1 in cities1) {
        // Check if the city is also present in cities2
        if (city1 in cities2) {
            // If the city is common, add it to the commonCities list
            commonCities.add(city1)
        }
    }

    return commonCities
}
/**
 * This function takes in two lists of cities and returns a list of common cities in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {
/**
 * This function takes in two lists of cities and returns a list of common cities in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {

    // Initialize an empty list to store the common cities
    val commonCities = mutableListOf<String>()

    // Iterate through each city in cities1
    for (city1 in cities1) {
        // Check if the city is also present in cities2
        if (city1 in cities2) {
            // If the city is common, add it to the commonCities list
            commonCities.add(city1)
        }
    }

    return commonCities
}