/**
 * Given two lists of countries, this function finds the intersection of the two lists using a loop and the OR operator.
 *
 * @param countries1 The first list of countries
 * @param countries2 The second list of countries
 * @return The list of countries that are present in both countries1 and countries2
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {

    val commonCountries = mutableListOf<String>()

    for (country1 in countries1) {
        for (country2 in countries2) {
            if (country1 == country2) {
                commonCountries.add(country1)
            }
        }
    }

    return commonCountries
}
/**
 * Given two lists of countries, this function finds the intersection of the two lists using a loop and the OR operator.
 *
 * @param countries1 The first list of countries
 * @param countries2 The second list of countries
 * @return The list of countries that are present in both countries1 and countries2
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {
/**
 * Given two lists of countries, this function finds the intersection of the two lists using a loop and the OR operator.
 *
 * @param countries1 The first list of countries
 * @param countries2 The second list of countries
 * @return The list of countries that are present in both countries1 and countries2
 */
fun findCommonCountries(countries1: List<String>, countries2: List<String>): List<String> {

    val commonCountries = mutableListOf<String>()

    for (country1 in countries1) {
        for (country2 in countries2) {
            if (country1 == country2) {
                commonCountries.add(country1)
            }
        }
    }

    return commonCountries
}