/**
 * This function takes a list of animals and a reserve area, and returns the animals that are currently in the reserve.
 * Please complete the function by using the 'break' statement and the 'in' operator correctly.
 */
fun animalsInReserve(animalsList: List<String>, reserveArea: List<String>): List<String> {

    val animalsInReserve = mutableListOf<String>()
    for (animal in animalsList) {
        if (animal in reserveArea) {
            animalsInReserve.add(animal)
        } else {
            break  // Add 'break' statement here
        }
    }
    return animalsInReserve
}
/**
 * This function takes a list of animals and a reserve area, and returns the animals that are currently in the reserve.
 * Please complete the function by using the 'break' statement and the 'in' operator correctly.
 */
fun animalsInReserve(animalsList: List<String>, reserveArea: List<String>): List<String> {
/**
 * This function takes a list of animals and a reserve area, and returns the animals that are currently in the reserve.
 * Please complete the function by using the 'break' statement and the 'in' operator correctly.
 */
fun animalsInReserve(animalsList: List<String>, reserveArea: List<String>): List<String> {

    val animalsInReserve = mutableListOf<String>()
    for (animal in animalsList) {
        if (animal in reserveArea) {
            animalsInReserve.add(animal)
        } else {
            break  // Add 'break' statement here
        }
    }
    return animalsInReserve
}