/**
 * Given a list of numbers called 'athlete' and the start and end indices of a slice,
 * write a function that deletes all the elements in the slice of the list.
 *
 * @param athlete A list of numbers
 * @param start The starting index of the slice (inclusive)
 * @param end The ending index of the slice (exclusive)
 * @return The updated list with the elements deleted
 *
 * Example:
 * deleteElements(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 * deleteElements(listOf(10, 20, 30, 40, 50, 60), 2, 5) -> [10, 20, 60]
 */
fun deleteElements(athlete: List<Int>, start: Int, end: Int): List<Int> {

    return athlete.subList(0, start) + athlete.subList(end, athlete.size)
}
/**
 * Given a list of numbers called 'athlete' and the start and end indices of a slice,
 * write a function that deletes all the elements in the slice of the list.
 *
 * @param athlete A list of numbers
 * @param start The starting index of the slice (inclusive)
 * @param end The ending index of the slice (exclusive)
 * @return The updated list with the elements deleted
 *
 * Example:
 * deleteElements(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 * deleteElements(listOf(10, 20, 30, 40, 50, 60), 2, 5) -> [10, 20, 60]
 */
fun deleteElements(athlete: List<Int>, start: Int, end: Int): List<Int> {
/**
 * Given a list of numbers called 'athlete' and the start and end indices of a slice,
 * write a function that deletes all the elements in the slice of the list.
 *
 * @param athlete A list of numbers
 * @param start The starting index of the slice (inclusive)
 * @param end The ending index of the slice (exclusive)
 * @return The updated list with the elements deleted
 *
 * Example:
 * deleteElements(listOf(1, 2, 3, 4, 5), 1, 4) -> [1, 5]
 * deleteElements(listOf(10, 20, 30, 40, 50, 60), 2, 5) -> [10, 20, 60]
 */
fun deleteElements(athlete: List<Int>, start: Int, end: Int): List<Int> {

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