/**
 * This function finds potential lawsuits based on the client's age,
 * income, and gender. It returns true if there is a potential lawsuit,
 * otherwise returns false.
 *
 * @param clientAge The age of the client
 * @param clientIncome The annual income of the client in dollars
 * @param clientGender The gender of the client, either "male" or "female"
 * @return true if there is a potential lawsuit, false otherwise
 */
fun findLawsuits(clientAge: Int, clientIncome: Float, clientGender: String): Boolean {

    // Check if the client is below 18 years old and has income less than $1000,
    // condition for potential lawsuit
    val isUnderageAndLowIncome = clientAge < 18 && clientIncome < 1000

    // Check if the client is a male and has income greater than $100000,
    // another condition for potential lawsuit
    val isMaleAndHighIncome = clientGender == "male" && clientIncome > 100000

    // Return true if any of the potential lawsuit conditions match, otherwise false
    return isUnderageAndLowIncome || isMaleAndHighIncome
}
/**
 * This function finds potential lawsuits based on the client's age,
 * income, and gender. It returns true if there is a potential lawsuit,
 * otherwise returns false.
 *
 * @param clientAge The age of the client
 * @param clientIncome The annual income of the client in dollars
 * @param clientGender The gender of the client, either "male" or "female"
 * @return true if there is a potential lawsuit, false otherwise
 */
fun findLawsuits(clientAge: Int, clientIncome: Float, clientGender: String): Boolean {
/**
 * This function finds potential lawsuits based on the client's age,
 * income, and gender. It returns true if there is a potential lawsuit,
 * otherwise returns false.
 *
 * @param clientAge The age of the client
 * @param clientIncome The annual income of the client in dollars
 * @param clientGender The gender of the client, either "male" or "female"
 * @return true if there is a potential lawsuit, false otherwise
 */
fun findLawsuits(clientAge: Int, clientIncome: Float, clientGender: String): Boolean {

    // Check if the client is below 18 years old and has income less than $1000,
    // condition for potential lawsuit
    val isUnderageAndLowIncome = clientAge < 18 && clientIncome < 1000

    // Check if the client is a male and has income greater than $100000,
    // another condition for potential lawsuit
    val isMaleAndHighIncome = clientGender == "male" && clientIncome > 100000

    // Return true if any of the potential lawsuit conditions match, otherwise false
    return isUnderageAndLowIncome || isMaleAndHighIncome
}