/**
 * Returns a list of the largest numbers in 'numbers' that are not greater than 'limit'.
 *
 * @param numbers A list of numbers.
 * @param limit The upper limit for the numbers returned.
 * @return A list of the largest numbers in 'numbers' that are not greater than 'limit'.
 */
fun findLargestNumbers(numbers: List<Int>, limit: Int): List<Int> {

    // Initialize an empty list to store the largest numbers
    val largestNumbers = mutableListOf<Int>()

    // Sort the 'numbers' list in descending order
    val sortedNumbers = numbers.sortedDescending()

    // Iterate through each number in 'numbers'
    for (num in sortedNumbers) {
        // Check if the number is not greater than the limit and is not already in the 'largestNumbers' list
        if (num <= limit && num !in largestNumbers) {
            // Add the number to the 'largestNumbers' list
            largestNumbers.add(num)
        }
    }

    return largestNumbers
}
/**
 * Returns a list of the largest numbers in 'numbers' that are not greater than 'limit'.
 *
 * @param numbers A list of numbers.
 * @param limit The upper limit for the numbers returned.
 * @return A list of the largest numbers in 'numbers' that are not greater than 'limit'.
 */
fun findLargestNumbers(numbers: List<Int>, limit: Int): List<Int> {
/**
 * Returns a list of the largest numbers in 'numbers' that are not greater than 'limit'.
 *
 * @param numbers A list of numbers.
 * @param limit The upper limit for the numbers returned.
 * @return A list of the largest numbers in 'numbers' that are not greater than 'limit'.
 */
fun findLargestNumbers(numbers: List<Int>, limit: Int): List<Int> {

    // Initialize an empty list to store the largest numbers
    val largestNumbers = mutableListOf<Int>()

    // Sort the 'numbers' list in descending order
    val sortedNumbers = numbers.sortedDescending()

    // Iterate through each number in 'numbers'
    for (num in sortedNumbers) {
        // Check if the number is not greater than the limit and is not already in the 'largestNumbers' list
        if (num <= limit && num !in largestNumbers) {
            // Add the number to the 'largestNumbers' list
            largestNumbers.add(num)
        }
    }

    return largestNumbers
}