/**
 * Deletes all occurrences of the given number from the list.
 *
 * @param lst The input list of integers.
 * @param num The number to be deleted.
 * @return The modified list after deleting all occurrences of the given number.
 */
fun deleteElements(lst: List<Int>, num: Int): List<Int> {

    // Create a new list using filter function, excluding the occurrences of the given number
    return lst.filter { it != num }
}
/**
 * Deletes all occurrences of the given number from the list.
 *
 * @param lst The input list of integers.
 * @param num The number to be deleted.
 * @return The modified list after deleting all occurrences of the given number.
 */
fun deleteElements(lst: List<Int>, num: Int): List<Int> {
/**
 * Deletes all occurrences of the given number from the list.
 *
 * @param lst The input list of integers.
 * @param num The number to be deleted.
 * @return The modified list after deleting all occurrences of the given number.
 */
fun deleteElements(lst: List<Int>, num: Int): List<Int> {

    // Create a new list using filter function, excluding the occurrences of the given number
    return lst.filter { it != num }
}