/**
 * Remove all occurrences of a specified value from the list.
 *
 * @param data The original list of values.
 * @param value The specified value to be removed.
 * @return The modified list with all occurrences of the specified value removed.
 */
fun removeValues(data: List<Any>, value: Any): List<Any> {

    // Empty list to store modified values
    val result = mutableListOf<Any>()

    // Loop through each element in the original list
    for (element in data) {
        // Check if the element is equal to the specified value
        if (element != value) {
            // If not equal, append it to the result list
            result.add(element)
        }
    }

    return result
}
/**
 * Remove all occurrences of a specified value from the list.
 *
 * @param data The original list of values.
 * @param value The specified value to be removed.
 * @return The modified list with all occurrences of the specified value removed.
 */
fun removeValues(data: List<Any>, value: Any): List<Any> {
/**
 * Remove all occurrences of a specified value from the list.
 *
 * @param data The original list of values.
 * @param value The specified value to be removed.
 * @return The modified list with all occurrences of the specified value removed.
 */
fun removeValues(data: List<Any>, value: Any): List<Any> {

    // Empty list to store modified values
    val result = mutableListOf<Any>()

    // Loop through each element in the original list
    for (element in data) {
        // Check if the element is equal to the specified value
        if (element != value) {
            // If not equal, append it to the result list
            result.add(element)
        }
    }

    return result
}