/**
 * You are a lawyer working on a case and need to access the names of the clients involved. You have received a tuple
 * containing the client information in the following order: (client1, client2, client3). Each client has various details
 * associated with them stored in dictionaries. Your task is to access the name of each client in the tuple and assign
 * it to the respective variable for easier reference.
 *
 * Complete the code below by assigning the name of each client to the corresponding variable: client1Name,
 * client2Name, and client3Name.
 *
 * Hint: Use the simple assignment operator (=) to assign the values from the dictionaries to the variables.
 */
fun getClientName(clientInfo: Triple<Map<String, String>, Map<String, String>, Map<String, String>>): Triple<String, String, String> {

    // Client information
    val (client1, client2, client3) = clientInfo

    // Assign client names from dictionaries
    val client1Name = client1["name"] ?: ""
    val client2Name = client2["name"] ?: ""
    val client3Name = client3["name"] ?: ""

    return Triple(client1Name, client2Name, client3Name)
}
/**
 * You are a lawyer working on a case and need to access the names of the clients involved. You have received a tuple
 * containing the client information in the following order: (client1, client2, client3). Each client has various details
 * associated with them stored in dictionaries. Your task is to access the name of each client in the tuple and assign
 * it to the respective variable for easier reference.
 *
 * Complete the code below by assigning the name of each client to the corresponding variable: client1Name,
 * client2Name, and client3Name.
 *
 * Hint: Use the simple assignment operator (=) to assign the values from the dictionaries to the variables.
 */
fun getClientName(clientInfo: Triple<Map<String, String>, Map<String, String>, Map<String, String>>): Triple<String, String, String> {
/**
 * You are a lawyer working on a case and need to access the names of the clients involved. You have received a tuple
 * containing the client information in the following order: (client1, client2, client3). Each client has various details
 * associated with them stored in dictionaries. Your task is to access the name of each client in the tuple and assign
 * it to the respective variable for easier reference.
 *
 * Complete the code below by assigning the name of each client to the corresponding variable: client1Name,
 * client2Name, and client3Name.
 *
 * Hint: Use the simple assignment operator (=) to assign the values from the dictionaries to the variables.
 */
fun getClientName(clientInfo: Triple<Map<String, String>, Map<String, String>, Map<String, String>>): Triple<String, String, String> {

    // Client information
    val (client1, client2, client3) = clientInfo

    // Assign client names from dictionaries
    val client1Name = client1["name"] ?: ""
    val client2Name = client2["name"] ?: ""
    val client3Name = client3["name"] ?: ""

    return Triple(client1Name, client2Name, client3Name)
}