/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * sort the tuples based on the integer value in descending order.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A sorted list of nested tuples in descending order based on the integer value.
 */
fun sortTuples(nestedTuples: List<Pair<String, Int>>): List<Pair<String, Int>> {

    return nestedTuples.sortedByDescending { it.second }
}
/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * sort the tuples based on the integer value in descending order.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A sorted list of nested tuples in descending order based on the integer value.
 */
fun sortTuples(nestedTuples: List<Pair<String, Int>>): List<Pair<String, Int>> {
/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * sort the tuples based on the integer value in descending order.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A sorted list of nested tuples in descending order based on the integer value.
 */
fun sortTuples(nestedTuples: List<Pair<String, Int>>): List<Pair<String, Int>> {

    return nestedTuples.sortedByDescending { it.second }
}