/**
 * The function checks if a given sequence contains any elements that are not present in the excluded list.
 *
 * @param sequence A list of elements.
 * @param excluded A list of elements to exclude from the sequence.
 * @return True if the sequence contains elements not present in the excluded list, False otherwise.
 */
fun checkSequence(sequence: List<Any>, excluded: List<Any>): Boolean {

    for (element in sequence) {
        if (element !in excluded) {
            return true
        }
    }
    return false
}

// Exercise: Given a list of sequences and a list of excluded elements, implement a function that returns a list containing only the sequences where every element is present in the excluded list. The input list can contain any number of sequences and each sequence can contain any number of elements.
/**
 * The function checks if a given sequence contains any elements that are not present in the excluded list.
 *
 * @param sequence A list of elements.
 * @param excluded A list of elements to exclude from the sequence.
 * @return True if the sequence contains elements not present in the excluded list, False otherwise.
 */
fun checkSequence(sequence: List<Any>, excluded: List<Any>): Boolean {
/**
 * The function checks if a given sequence contains any elements that are not present in the excluded list.
 *
 * @param sequence A list of elements.
 * @param excluded A list of elements to exclude from the sequence.
 * @return True if the sequence contains elements not present in the excluded list, False otherwise.
 */
fun checkSequence(sequence: List<Any>, excluded: List<Any>): Boolean {

    for (element in sequence) {
        if (element !in excluded) {
            return true
        }
    }
    return false
}

// Exercise: Given a list of sequences and a list of excluded elements, implement a function that returns a list containing only the sequences where every element is present in the excluded list. The input list can contain any number of sequences and each sequence can contain any number of elements.