/**
 * Given a list of numbers, remove all elements within the specified range.
 *
 * @param numbers A list of numbers.
 * @param start The start index of the range.
 * @param end The end index of the range (exclusive).
 * @return The modified list with elements removed.
 *
 * Example:
 * removeElementsFromList(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 */
fun removeElementsFromList(numbers: List<Int>, start: Int, end: Int): List<Int> {

    return numbers.subList(0, start) + numbers.subList(end, numbers.size)
}
/**
 * Given a list of numbers, remove all elements within the specified range.
 *
 * @param numbers A list of numbers.
 * @param start The start index of the range.
 * @param end The end index of the range (exclusive).
 * @return The modified list with elements removed.
 *
 * Example:
 * removeElementsFromList(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 */
fun removeElementsFromList(numbers: List<Int>, start: Int, end: Int): List<Int> {
/**
 * Given a list of numbers, remove all elements within the specified range.
 *
 * @param numbers A list of numbers.
 * @param start The start index of the range.
 * @param end The end index of the range (exclusive).
 * @return The modified list with elements removed.
 *
 * Example:
 * removeElementsFromList(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 */
fun removeElementsFromList(numbers: List<Int>, start: Int, end: Int): List<Int> {

    return numbers.subList(0, start) + numbers.subList(end, numbers.size)
}