/**
 * Compares the elements of a tuple with the values generated by the range function and returns true
 * if all elements of the tuple are found within the specified range, and false otherwise.
 *
 * @param tuple1 A tuple of integers to be compared.
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @return true if all elements of the tuple are found within the range, false otherwise.
 */
fun compareTupleAndRange(tuple1: List<Int>, rangeStart: Int, rangeEnd: Int): Boolean {

    for (element in tuple1) {
        if (element !in rangeStart..rangeEnd) {
            return false
        }
    }
    return true
}
/**
 * Compares the elements of a tuple with the values generated by the range function and returns true
 * if all elements of the tuple are found within the specified range, and false otherwise.
 *
 * @param tuple1 A tuple of integers to be compared.
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @return true if all elements of the tuple are found within the range, false otherwise.
 */
fun compareTupleAndRange(tuple1: List<Int>, rangeStart: Int, rangeEnd: Int): Boolean {
/**
 * Compares the elements of a tuple with the values generated by the range function and returns true
 * if all elements of the tuple are found within the specified range, and false otherwise.
 *
 * @param tuple1 A tuple of integers to be compared.
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @return true if all elements of the tuple are found within the range, false otherwise.
 */
fun compareTupleAndRange(tuple1: List<Int>, rangeStart: Int, rangeEnd: Int): Boolean {

    for (element in tuple1) {
        if (element !in rangeStart..rangeEnd) {
            return false
        }
    }
    return true
}