/**
 * Given two lists of cities, find the common cities present in both lists.
 *
 * @param cities1 A list of city names (strings).
 * @param cities2 Another list of city names (strings).
 * @return A list of common city names present in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {

    val commonCities = mutableListOf<String>()

    // Loop through cities in cities1
    for (city1 in cities1) {
        // Loop through cities in cities2
        for (city2 in cities2) {
            // Check if city1 and city2 are the same
            if (city1 == city2) {
                // Add the common city to the list
                commonCities.add(city1)
            }
        }
    }

    return commonCities
}
/**
 * Given two lists of cities, find the common cities present in both lists.
 *
 * @param cities1 A list of city names (strings).
 * @param cities2 Another list of city names (strings).
 * @return A list of common city names present in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {
/**
 * Given two lists of cities, find the common cities present in both lists.
 *
 * @param cities1 A list of city names (strings).
 * @param cities2 Another list of city names (strings).
 * @return A list of common city names present in both lists.
 */
fun findCommonCities(cities1: List<String>, cities2: List<String>): List<String> {

    val commonCities = mutableListOf<String>()

    // Loop through cities in cities1
    for (city1 in cities1) {
        // Loop through cities in cities2
        for (city2 in cities2) {
            // Check if city1 and city2 are the same
            if (city1 == city2) {
                // Add the common city to the list
                commonCities.add(city1)
            }
        }
    }

    return commonCities
}