/**
 * Consider an Aerospace Engineer who wants to work with a range of numbers that can be sliced.
 * Write a function that takes a start and stop parameter, and returns a list with every third number
 * from start up to but not including stop.
 *
 * For example, if the start value is 3 and the stop value is 16, the function should return [3, 6, 9, 12, 15].
 */
fun rangeSlicingExample(start: Int, stop: Int): List<Int> {

    // Create a range with start and stop parameters
    val rangeList = (start until stop).toList()

    // Perform list slicing to get every third number
    val slicedList = rangeList.filterIndexed { index, _ -> index % 3 == 0 }

    return slicedList
}
/**
 * Consider an Aerospace Engineer who wants to work with a range of numbers that can be sliced.
 * Write a function that takes a start and stop parameter, and returns a list with every third number
 * from start up to but not including stop.
 *
 * For example, if the start value is 3 and the stop value is 16, the function should return [3, 6, 9, 12, 15].
 */
fun rangeSlicingExample(start: Int, stop: Int): List<Int> {
/**
 * Consider an Aerospace Engineer who wants to work with a range of numbers that can be sliced.
 * Write a function that takes a start and stop parameter, and returns a list with every third number
 * from start up to but not including stop.
 *
 * For example, if the start value is 3 and the stop value is 16, the function should return [3, 6, 9, 12, 15].
 */
fun rangeSlicingExample(start: Int, stop: Int): List<Int> {

    // Create a range with start and stop parameters
    val rangeList = (start until stop).toList()

    // Perform list slicing to get every third number
    val slicedList = rangeList.filterIndexed { index, _ -> index % 3 == 0 }

    return slicedList
}