/**
 * Given two lists of countries, the function finds the common countries using the AND operator and iteration.
 *
 * @param countries1 A list of countries
 * @param countries2 A list of countries
 * @return A list of common countries between the two lists
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {

    val commonCountries = mutableListOf<String>()

    // Iterate over the countries in the first list
    for (country1 in countries1) {
        // Iterate over the countries in the second list
        for (country2 in countries2) {
            // Check if the country is common in both lists
            if (country1 == country2) {
                commonCountries.add(country1) // Add the common country to the list
            }
        }
    }

    return commonCountries
}
/**
 * Given two lists of countries, the function finds the common countries using the AND operator and iteration.
 *
 * @param countries1 A list of countries
 * @param countries2 A list of countries
 * @return A list of common countries between the two lists
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {
/**
 * Given two lists of countries, the function finds the common countries using the AND operator and iteration.
 *
 * @param countries1 A list of countries
 * @param countries2 A list of countries
 * @return A list of common countries between the two lists
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {

    val commonCountries = mutableListOf<String>()

    // Iterate over the countries in the first list
    for (country1 in countries1) {
        // Iterate over the countries in the second list
        for (country2 in countries2) {
            // Check if the country is common in both lists
            if (country1 == country2) {
                commonCountries.add(country1) // Add the common country to the list
            }
        }
    }

    return commonCountries
}