/**
 * This function takes a list of clients and a criteria as input,
 * and returns a list of clients that meet the criteria.
 *
 * @param clientsList A list of clients.
 * @param criteria The criteria to filter the clientsList.
 * @return A list of clients that meet the specified criteria.
 */
fun findClientsWithCriteria(clientsList: List<String>, criteria: String): List<String> {

    val filteredClients = mutableListOf<String>()
    var i = 0

    while (i < clientsList.size) {
        val client = clientsList[i]
        if (criteria.isNotEmpty() && client.isNotEmpty()) {
            if (client.contains(criteria)) {
                filteredClients.add(client)
            }
        }
        i++
    }

    return filteredClients
}
/**
 * This function takes a list of clients and a criteria as input,
 * and returns a list of clients that meet the criteria.
 *
 * @param clientsList A list of clients.
 * @param criteria The criteria to filter the clientsList.
 * @return A list of clients that meet the specified criteria.
 */
fun findClientsWithCriteria(clientsList: List<String>, criteria: String): List<String> {
/**
 * This function takes a list of clients and a criteria as input,
 * and returns a list of clients that meet the criteria.
 *
 * @param clientsList A list of clients.
 * @param criteria The criteria to filter the clientsList.
 * @return A list of clients that meet the specified criteria.
 */
fun findClientsWithCriteria(clientsList: List<String>, criteria: String): List<String> {

    val filteredClients = mutableListOf<String>()
    var i = 0

    while (i < clientsList.size) {
        val client = clientsList[i]
        if (criteria.isNotEmpty() && client.isNotEmpty()) {
            if (client.contains(criteria)) {
                filteredClients.add(client)
            }
        }
        i++
    }

    return filteredClients
}