/**
 * Given a list of all clients and a list of selected clients, filter out the clients who are not in the selected list.
 *
 * @param clients A list of strings representing all the lawyer's clients.
 * @param selectedClients A list of strings representing the selected clients.
 * @return A new list containing only the selected clients from the original clients list.
 */
fun filterLawyerClients(clients: List<String>, selectedClients: List<String>): List<String> {

    val filteredClients = mutableListOf<String>()

    for (client in clients) {
        if (client in selectedClients) {
            filteredClients.add(client)
        }
    }

    return filteredClients
}
/**
 * Given a list of all clients and a list of selected clients, filter out the clients who are not in the selected list.
 *
 * @param clients A list of strings representing all the lawyer's clients.
 * @param selectedClients A list of strings representing the selected clients.
 * @return A new list containing only the selected clients from the original clients list.
 */
fun filterLawyerClients(clients: List<String>, selectedClients: List<String>): List<String> {
/**
 * Given a list of all clients and a list of selected clients, filter out the clients who are not in the selected list.
 *
 * @param clients A list of strings representing all the lawyer's clients.
 * @param selectedClients A list of strings representing the selected clients.
 * @return A new list containing only the selected clients from the original clients list.
 */
fun filterLawyerClients(clients: List<String>, selectedClients: List<String>): List<String> {

    val filteredClients = mutableListOf<String>()

    for (client in clients) {
        if (client in selectedClients) {
            filteredClients.add(client)
        }
    }

    return filteredClients
}