/**
 * Given a dictionary of lawyers where the keys are their names and the values are their phone numbers,
 * write a function that returns a list of all the phone numbers of the lawyers whose names contain the letter 'a'.
 * The phone numbers should be sorted in descending order.
 *
 * @param lawyers A dictionary of lawyers where the keys are their names (String) and the values are their phone numbers (String).
 * @return A list of phone numbers (String) in descending order.
 */
fun findLawyerPhoneNumbers(lawyers: Map<String, String>): List<String> {

    val phoneNumbers = mutableListOf<String>()

    // Iterate over each lawyer in the dictionary
    for ((name, phoneNumber) in lawyers) {
        // Check if the lawyer's name contains the letter 'a'
        if ('a' in name.toLowerCase()) {
            // Add the lawyer's phone number to the list
            phoneNumbers.add(phoneNumber)
        }
    }

    // Sort the phone numbers in descending order
    phoneNumbers.sortDescending()

    return phoneNumbers
}
/**
 * Given a dictionary of lawyers where the keys are their names and the values are their phone numbers,
 * write a function that returns a list of all the phone numbers of the lawyers whose names contain the letter 'a'.
 * The phone numbers should be sorted in descending order.
 *
 * @param lawyers A dictionary of lawyers where the keys are their names (String) and the values are their phone numbers (String).
 * @return A list of phone numbers (String) in descending order.
 */
fun findLawyerPhoneNumbers(lawyers: Map<String, String>): List<String> {
/**
 * Given a dictionary of lawyers where the keys are their names and the values are their phone numbers,
 * write a function that returns a list of all the phone numbers of the lawyers whose names contain the letter 'a'.
 * The phone numbers should be sorted in descending order.
 *
 * @param lawyers A dictionary of lawyers where the keys are their names (String) and the values are their phone numbers (String).
 * @return A list of phone numbers (String) in descending order.
 */
fun findLawyerPhoneNumbers(lawyers: Map<String, String>): List<String> {

    val phoneNumbers = mutableListOf<String>()

    // Iterate over each lawyer in the dictionary
    for ((name, phoneNumber) in lawyers) {
        // Check if the lawyer's name contains the letter 'a'
        if ('a' in name.toLowerCase()) {
            // Add the lawyer's phone number to the list
            phoneNumbers.add(phoneNumber)
        }
    }

    // Sort the phone numbers in descending order
    phoneNumbers.sortDescending()

    return phoneNumbers
}