/**
 * This function takes a list of numbers, a start value, and an end value as input.
 * It returns a new list containing the numbers in the original list that lie within the specified range.
 */
fun intersectionSlice(numbers: List<Int>, start: Int, end: Int): List<Int> {

    val intersectNums = mutableListOf<Int>()

    for (num in numbers) {
        if (start <= num && num <= end) {
            intersectNums.add(num)
        }
    }

    return intersectNums
}
/**
 * This function takes a list of numbers, a start value, and an end value as input.
 * It returns a new list containing the numbers in the original list that lie within the specified range.
 */
fun intersectionSlice(numbers: List<Int>, start: Int, end: Int): List<Int> {
/**
 * This function takes a list of numbers, a start value, and an end value as input.
 * It returns a new list containing the numbers in the original list that lie within the specified range.
 */
fun intersectionSlice(numbers: List<Int>, start: Int, end: Int): List<Int> {

    val intersectNums = mutableListOf<Int>()

    for (num in numbers) {
        if (start <= num && num <= end) {
            intersectNums.add(num)
        }
    }

    return intersectNums
}