/**
 * This function compares two tuples and returns true if tuple1 is greater than or equal to tuple2,
 * and false otherwise.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return true if tuple1 is greater than or equal to tuple2, false otherwise.
 */
fun compareTuples(tuple1: List<Int>, tuple2: List<Int>): Boolean {

    // Compare the length of tuples first
    if (tuple1.size >= tuple2.size) {
        for (i in tuple2.indices) {
            // Compare each element of the tuples
            if (tuple1[i] > tuple2[i]) {
                return true
            } else if (tuple1[i] < tuple2[i]) {
                return false
            }
        }
        // If all elements compared so far are equal, tuple1 is greater or equal if it has more elements
        return tuple1.size >= tuple2.size
    }
    // If tuple1 has fewer elements, it can never be greater or equal to tuple2
    return false
}
/**
 * This function compares two tuples and returns true if tuple1 is greater than or equal to tuple2,
 * and false otherwise.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return true if tuple1 is greater than or equal to tuple2, false otherwise.
 */
fun compareTuples(tuple1: List<Int>, tuple2: List<Int>): Boolean {
/**
 * This function compares two tuples and returns true if tuple1 is greater than or equal to tuple2,
 * and false otherwise.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return true if tuple1 is greater than or equal to tuple2, false otherwise.
 */
fun compareTuples(tuple1: List<Int>, tuple2: List<Int>): Boolean {

    // Compare the length of tuples first
    if (tuple1.size >= tuple2.size) {
        for (i in tuple2.indices) {
            // Compare each element of the tuples
            if (tuple1[i] > tuple2[i]) {
                return true
            } else if (tuple1[i] < tuple2[i]) {
                return false
            }
        }
        // If all elements compared so far are equal, tuple1 is greater or equal if it has more elements
        return tuple1.size >= tuple2.size
    }
    // If tuple1 has fewer elements, it can never be greater or equal to tuple2
    return false
}