/**
 * This function takes a list and a value and removes all occurrences of that value from the list.
 * The function needs to be implemented without using the ternary operator.
 *
 * @param lst The input list.
 * @param removeVal The value to be removed.
 * @return The modified list after removing all occurrences of the specified value.
 */
fun alternativeToTernaryOperator(lst: List<Int>, removeVal: Int): List<Int> {

    // Solution without using the ternary operator
    val modifiedList = lst.filter { it != removeVal }
    return modifiedList
}
/**
 * This function takes a list and a value and removes all occurrences of that value from the list.
 * The function needs to be implemented without using the ternary operator.
 *
 * @param lst The input list.
 * @param removeVal The value to be removed.
 * @return The modified list after removing all occurrences of the specified value.
 */
fun alternativeToTernaryOperator(lst: List<Int>, removeVal: Int): List<Int> {
/**
 * This function takes a list and a value and removes all occurrences of that value from the list.
 * The function needs to be implemented without using the ternary operator.
 *
 * @param lst The input list.
 * @param removeVal The value to be removed.
 * @return The modified list after removing all occurrences of the specified value.
 */
fun alternativeToTernaryOperator(lst: List<Int>, removeVal: Int): List<Int> {

    // Solution without using the ternary operator
    val modifiedList = lst.filter { it != removeVal }
    return modifiedList
}