/**
 * Given a list of cities and a prefix, returns all the cities that start
 * with the given prefix.
 *
 * @param cities a list of cities (string)
 * @param prefix a prefix to search for (string)
 * @return a list of cities that start with the given prefix
 */
fun findCityPrefix(cities: List<String>, prefix: String): List<String> {

    val matchingCities = mutableListOf<String>()
    for (city in cities) {
        // Check if the city starts with the given prefix
        if (city.startsWith(prefix)) {
            matchingCities.add(city)
        }
    }
    return matchingCities
}
/**
 * Given a list of cities and a prefix, returns all the cities that start
 * with the given prefix.
 *
 * @param cities a list of cities (string)
 * @param prefix a prefix to search for (string)
 * @return a list of cities that start with the given prefix
 */
fun findCityPrefix(cities: List<String>, prefix: String): List<String> {
/**
 * Given a list of cities and a prefix, returns all the cities that start
 * with the given prefix.
 *
 * @param cities a list of cities (string)
 * @param prefix a prefix to search for (string)
 * @return a list of cities that start with the given prefix
 */
fun findCityPrefix(cities: List<String>, prefix: String): List<String> {

    val matchingCities = mutableListOf<String>()
    for (city in cities) {
        // Check if the city starts with the given prefix
        if (city.startsWith(prefix)) {
            matchingCities.add(city)
        }
    }
    return matchingCities
}