/**
 * This function takes a start and end value and returns a tuple
 * containing all the even numbers between the start and end (inclusive),
 * while also ensuring that the resulting tuple is in descending order.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @return A tuple consisting of even numbers within the range, in descending order.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int> {

    // Step 1: Get all the numbers in the range (both start and end are inclusive)
    val numbers = (start..end).toList()

    // Step 2: Filter out the odd numbers
    val evenNumbers = numbers.filter { it % 2 == 0 }

    // Step 3: Sort the even numbers in descending order
    val sortedNumbers = evenNumbers.sortedDescending()

    // Step 4: Return the final tuple
    return sortedNumbers
}
/**
 * This function takes a start and end value and returns a tuple
 * containing all the even numbers between the start and end (inclusive),
 * while also ensuring that the resulting tuple is in descending order.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @return A tuple consisting of even numbers within the range, in descending order.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int> {
/**
 * This function takes a start and end value and returns a tuple
 * containing all the even numbers between the start and end (inclusive),
 * while also ensuring that the resulting tuple is in descending order.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @return A tuple consisting of even numbers within the range, in descending order.
 */
fun createTupleFromRange(start: Int, end: Int): List<Int> {

    // Step 1: Get all the numbers in the range (both start and end are inclusive)
    val numbers = (start..end).toList()

    // Step 2: Filter out the odd numbers
    val evenNumbers = numbers.filter { it % 2 == 0 }

    // Step 3: Sort the even numbers in descending order
    val sortedNumbers = evenNumbers.sortedDescending()

    // Step 4: Return the final tuple
    return sortedNumbers
}