/**
 * You are a psychologist and you need to determine whether a prospective client is suitable for therapy.
 * Use nested logical operators and break statement to solve this exercise.
 *
 * @param age The age of the client.
 * @param income The annual income of the client.
 * @param occupation The occupation of the client.
 * @return True if the client is suitable for therapy, False otherwise.
 */
fun determineClients(age: Int, income: Int, occupation: String): Boolean {

    // Check if the age is above 18 and the income is above $50,000
    if (age > 18 && income > 50000) {
        // Check if the occupation is one of the following: doctor, lawyer, engineer
        if (occupation == "doctor" || occupation == "lawyer" || occupation == "engineer") {
            // Check if the age is below 30 and the income is below $100,000
            if (age < 30 && income < 100000) {
                // Check if the occupation is either doctor or engineer
                return occupation == "doctor" || occupation == "engineer"
            } else {
                return false
            }
        }
    }
    return false
}
/**
 * You are a psychologist and you need to determine whether a prospective client is suitable for therapy.
 * Use nested logical operators and break statement to solve this exercise.
 *
 * @param age The age of the client.
 * @param income The annual income of the client.
 * @param occupation The occupation of the client.
 * @return True if the client is suitable for therapy, False otherwise.
 */
fun determineClients(age: Int, income: Int, occupation: String): Boolean {
/**
 * You are a psychologist and you need to determine whether a prospective client is suitable for therapy.
 * Use nested logical operators and break statement to solve this exercise.
 *
 * @param age The age of the client.
 * @param income The annual income of the client.
 * @param occupation The occupation of the client.
 * @return True if the client is suitable for therapy, False otherwise.
 */
fun determineClients(age: Int, income: Int, occupation: String): Boolean {

    // Check if the age is above 18 and the income is above $50,000
    if (age > 18 && income > 50000) {
        // Check if the occupation is one of the following: doctor, lawyer, engineer
        if (occupation == "doctor" || occupation == "lawyer" || occupation == "engineer") {
            // Check if the age is below 30 and the income is below $100,000
            if (age < 30 && income < 100000) {
                // Check if the occupation is either doctor or engineer
                return occupation == "doctor" || occupation == "engineer"
            } else {
                return false
            }
        }
    }
    return false
}