/**
 * Given a set of lawyer names and a dictionary of lawyer ages, create and return a map
 * that represents the profile of each lawyer. The profile should include the lawyer name, age,
 * and a unique lawyer ID.
 *
 * @param lawyerNames Set of lawyer names.
 * @param lawyerAges Dictionary mapping lawyer names to their ages.
 * @return A map representing the lawyer profiles, with keys as the lawyer ID and values as
 * dictionaries containing the lawyer name, age, and ID.
 */
fun createLawyerProfile(lawyerNames: Set<String>, lawyerAges: Map<String, Int>): Map<Int, Map<String, Any>> {

    val lawyerProfiles = mutableMapOf<Int, Map<String, Any>>()
    var lawyerId = 1

    for (name in lawyerNames) {
        val age = lawyerAges[name]
        if (age != null) {
            lawyerProfiles[lawyerId] = mapOf(
                "name" to name,
                "age" to age,
                "ID" to lawyerId
            )
            lawyerId++
        }
    }

    return lawyerProfiles
}
/**
 * Given a set of lawyer names and a dictionary of lawyer ages, create and return a map
 * that represents the profile of each lawyer. The profile should include the lawyer name, age,
 * and a unique lawyer ID.
 *
 * @param lawyerNames Set of lawyer names.
 * @param lawyerAges Dictionary mapping lawyer names to their ages.
 * @return A map representing the lawyer profiles, with keys as the lawyer ID and values as
 * dictionaries containing the lawyer name, age, and ID.
 */
fun createLawyerProfile(lawyerNames: Set<String>, lawyerAges: Map<String, Int>): Map<Int, Map<String, Any>> {
/**
 * Given a set of lawyer names and a dictionary of lawyer ages, create and return a map
 * that represents the profile of each lawyer. The profile should include the lawyer name, age,
 * and a unique lawyer ID.
 *
 * @param lawyerNames Set of lawyer names.
 * @param lawyerAges Dictionary mapping lawyer names to their ages.
 * @return A map representing the lawyer profiles, with keys as the lawyer ID and values as
 * dictionaries containing the lawyer name, age, and ID.
 */
fun createLawyerProfile(lawyerNames: Set<String>, lawyerAges: Map<String, Int>): Map<Int, Map<String, Any>> {

    val lawyerProfiles = mutableMapOf<Int, Map<String, Any>>()
    var lawyerId = 1

    for (name in lawyerNames) {
        val age = lawyerAges[name]
        if (age != null) {
            lawyerProfiles[lawyerId] = mapOf(
                "name" to name,
                "age" to age,
                "ID" to lawyerId
            )
            lawyerId++
        }
    }

    return lawyerProfiles
}