/**
 * A lawyer needs to check if each client in the given set satisfies the compliance criteria.
 *
 * @param clientList The set of clients to check for compliance.
 * @param complianceFunc A function that takes a client name as input and returns True or False based on compliance.
 * @return True if all clients in clientList satisfy the compliance criteria, False otherwise.
 */
fun checkCompliantClients(clientList: Set<String>, complianceFunc: (String) -> Boolean): Boolean {

    for (client in clientList) {
        if (!complianceFunc(client)) {
            return false
        }
    }
    return true
}
/**
 * A lawyer needs to check if each client in the given set satisfies the compliance criteria.
 *
 * @param clientList The set of clients to check for compliance.
 * @param complianceFunc A function that takes a client name as input and returns True or False based on compliance.
 * @return True if all clients in clientList satisfy the compliance criteria, False otherwise.
 */
fun checkCompliantClients(clientList: Set<String>, complianceFunc: (String) -> Boolean): Boolean {
/**
 * A lawyer needs to check if each client in the given set satisfies the compliance criteria.
 *
 * @param clientList The set of clients to check for compliance.
 * @param complianceFunc A function that takes a client name as input and returns True or False based on compliance.
 * @return True if all clients in clientList satisfy the compliance criteria, False otherwise.
 */
fun checkCompliantClients(clientList: Set<String>, complianceFunc: (String) -> Boolean): Boolean {

    for (client in clientList) {
        if (!complianceFunc(client)) {
            return false
        }
    }
    return true
}