/**
 * This function removes all elements from a given list that are not multiples of 3 and creates
 * a tuple from a range of values starting from 'start' and ending at 'end'.
 *
 * @param lst The input list.
 * @param start The starting value for the range.
 * @param end The ending value for the range.
 * @return A tuple containing the range of values from 'start' to 'end' after removing non-multiples
 * of 3 from the input list.
 */
fun removeElementsAndCreateTuple(lst: List<Int>, start: Int, end: Int): Pair<List<Int>, IntRange> {

    // Remove elements that are not multiples of 3 from the list
    val filteredList = lst.filter { it % 3 == 0 }

    // Create a tuple from the range of values
    val tuple = Pair(filteredList, start..end)

    return tuple
}
/**
 * This function removes all elements from a given list that are not multiples of 3 and creates
 * a tuple from a range of values starting from 'start' and ending at 'end'.
 *
 * @param lst The input list.
 * @param start The starting value for the range.
 * @param end The ending value for the range.
 * @return A tuple containing the range of values from 'start' to 'end' after removing non-multiples
 * of 3 from the input list.
 */
fun removeElementsAndCreateTuple(lst: List<Int>, start: Int, end: Int): Pair<List<Int>, IntRange> {
/**
 * This function removes all elements from a given list that are not multiples of 3 and creates
 * a tuple from a range of values starting from 'start' and ending at 'end'.
 *
 * @param lst The input list.
 * @param start The starting value for the range.
 * @param end The ending value for the range.
 * @return A tuple containing the range of values from 'start' to 'end' after removing non-multiples
 * of 3 from the input list.
 */
fun removeElementsAndCreateTuple(lst: List<Int>, start: Int, end: Int): Pair<List<Int>, IntRange> {

    // Remove elements that are not multiples of 3 from the list
    val filteredList = lst.filter { it % 3 == 0 }

    // Create a tuple from the range of values
    val tuple = Pair(filteredList, start..end)

    return tuple
}