/**
 * Given a list of animals and a list of elements to remove, remove the specific elements from the animal list.
 *
 * @param animalList A list of animals.
 * @param elements A list of elements to remove.
 * @return The modified animalList with the specified elements removed.
 *
 * Example:
 * removeSpecificElements(listOf("dog", "cat", "bird", "dog", "fish"), listOf("dog", "bird")) -> ['cat', 'fish']
 */
fun removeSpecificElements(animalList: List<String>, elements: List<String>): List<String> {

    if (animalList !is List<*> || elements !is List<*>) {
        return listOf("Invalid input. Please provide a list for both 'animalList' and 'elements' parameters.")
    }
    return animalList.filter { it !in elements }
}
/**
 * Given a list of animals and a list of elements to remove, remove the specific elements from the animal list.
 *
 * @param animalList A list of animals.
 * @param elements A list of elements to remove.
 * @return The modified animalList with the specified elements removed.
 *
 * Example:
 * removeSpecificElements(listOf("dog", "cat", "bird", "dog", "fish"), listOf("dog", "bird")) -> ['cat', 'fish']
 */
fun removeSpecificElements(animalList: List<String>, elements: List<String>): List<String> {
/**
 * Given a list of animals and a list of elements to remove, remove the specific elements from the animal list.
 *
 * @param animalList A list of animals.
 * @param elements A list of elements to remove.
 * @return The modified animalList with the specified elements removed.
 *
 * Example:
 * removeSpecificElements(listOf("dog", "cat", "bird", "dog", "fish"), listOf("dog", "bird")) -> ['cat', 'fish']
 */
fun removeSpecificElements(animalList: List<String>, elements: List<String>): List<String> {

    if (animalList !is List<*> || elements !is List<*>) {
        return listOf("Invalid input. Please provide a list for both 'animalList' and 'elements' parameters.")
    }
    return animalList.filter { it !in elements }
}