/**
 * This function takes in a list of elements and a list of keys to be deleted from the elements list.
 *
 * @param elements a list of elements (strings)
 * @param keyList a list of keys (strings) to be deleted from the elements list
 * @return The updated elements list after deleting the specified keys
 *
 * Example:
 * deleteOperations(listOf("apple", "banana", "cherry", "date"), listOf("banana", "date"))
 * Expected output: ["apple", "cherry"]
 */
fun deleteOperations(elements: MutableList<String>, keyList: List<String>): List<String> {

    for (key in keyList) {
        if (key in elements) {
            elements.remove(key)
        }
    }
    return elements
}
/**
 * This function takes in a list of elements and a list of keys to be deleted from the elements list.
 *
 * @param elements a list of elements (strings)
 * @param keyList a list of keys (strings) to be deleted from the elements list
 * @return The updated elements list after deleting the specified keys
 *
 * Example:
 * deleteOperations(listOf("apple", "banana", "cherry", "date"), listOf("banana", "date"))
 * Expected output: ["apple", "cherry"]
 */
fun deleteOperations(elements: MutableList<String>, keyList: List<String>): List<String> {
/**
 * This function takes in a list of elements and a list of keys to be deleted from the elements list.
 *
 * @param elements a list of elements (strings)
 * @param keyList a list of keys (strings) to be deleted from the elements list
 * @return The updated elements list after deleting the specified keys
 *
 * Example:
 * deleteOperations(listOf("apple", "banana", "cherry", "date"), listOf("banana", "date"))
 * Expected output: ["apple", "cherry"]
 */
fun deleteOperations(elements: MutableList<String>, keyList: List<String>): List<String> {

    for (key in keyList) {
        if (key in elements) {
            elements.remove(key)
        }
    }
    return elements
}