/**
 * Given a list of integers, delete all occurrences of a specific element.
 *
 * @param lst A list of integers.
 * @return A new list with all occurrences of the specific element removed.
 *
 * Example:
 * Input:
 * [1, 2, 3, 4, 2, 5, 6, 2], 2
 *
 * Output:
 * [1, 3, 4, 5, 6]
 */
fun deleteElements(lst: MutableList<Int>, element: Int): List<Int> {

    lst.removeAll { it == element }
    return lst
}
/**
 * Given a list of integers, delete all occurrences of a specific element.
 *
 * @param lst A list of integers.
 * @return A new list with all occurrences of the specific element removed.
 *
 * Example:
 * Input:
 * [1, 2, 3, 4, 2, 5, 6, 2], 2
 *
 * Output:
 * [1, 3, 4, 5, 6]
 */
fun deleteElements(lst: MutableList<Int>, element: Int): List<Int> {
/**
 * Given a list of integers, delete all occurrences of a specific element.
 *
 * @param lst A list of integers.
 * @return A new list with all occurrences of the specific element removed.
 *
 * Example:
 * Input:
 * [1, 2, 3, 4, 2, 5, 6, 2], 2
 *
 * Output:
 * [1, 3, 4, 5, 6]
 */
fun deleteElements(lst: MutableList<Int>, element: Int): List<Int> {

    lst.removeAll { it == element }
    return lst
}