/**
 * Remove a specific country from the list of countries.
 *
 * @param countriesList A list of countries.
 * @param targetCountry The country to be removed.
 * @return Modified list with the target country removed.
 */
fun removeCountries(countriesList: MutableList<String>, targetCountry: String): List<String> {

    var i = 0
    while (i < countriesList.size) {
        if (countriesList[i] == targetCountry) {
            countriesList.removeAt(i)
            break
        }
        i++
    }
    return countriesList
}
/**
 * Remove a specific country from the list of countries.
 *
 * @param countriesList A list of countries.
 * @param targetCountry The country to be removed.
 * @return Modified list with the target country removed.
 */
fun removeCountries(countriesList: MutableList<String>, targetCountry: String): List<String> {
/**
 * Remove a specific country from the list of countries.
 *
 * @param countriesList A list of countries.
 * @param targetCountry The country to be removed.
 * @return Modified list with the target country removed.
 */
fun removeCountries(countriesList: MutableList<String>, targetCountry: String): List<String> {

    var i = 0
    while (i < countriesList.size) {
        if (countriesList[i] == targetCountry) {
            countriesList.removeAt(i)
            break
        }
        i++
    }
    return countriesList
}