/**
 * This function takes a list 'l' and an element, and returns a new list with all occurrences of the element removed.
 *
 * @param l The input list
 * @param element The element to be removed
 * @return A new list with all occurrences of the element removed
 */
fun removeElements(l: List<Any>, element: Any): List<Any> {

    // Initialize an empty list to store the filtered elements
    val filteredList = mutableListOf<Any>()

    // Iterate through each element in the list
    for (x in l) {
        // Check if the element is not equal to the target element
        if (x != element) {
            // If not equal, append it to the filtered list
            filteredList.add(x)
        }
    }

    // Return the filtered list
    return filteredList
}
/**
 * This function takes a list 'l' and an element, and returns a new list with all occurrences of the element removed.
 *
 * @param l The input list
 * @param element The element to be removed
 * @return A new list with all occurrences of the element removed
 */
fun removeElements(l: List<Any>, element: Any): List<Any> {
/**
 * This function takes a list 'l' and an element, and returns a new list with all occurrences of the element removed.
 *
 * @param l The input list
 * @param element The element to be removed
 * @return A new list with all occurrences of the element removed
 */
fun removeElements(l: List<Any>, element: Any): List<Any> {

    // Initialize an empty list to store the filtered elements
    val filteredList = mutableListOf<Any>()

    // Iterate through each element in the list
    for (x in l) {
        // Check if the element is not equal to the target element
        if (x != element) {
            // If not equal, append it to the filtered list
            filteredList.add(x)
        }
    }

    // Return the filtered list
    return filteredList
}