/**
 * A function to determine the eligibility for social worker assistance based on age, income, and employment status.
 *
 * - If the age is less than 18, return 'Not eligible'.
 * - If the age is between 18 and 65 (both inclusive), and the income is below 5000, return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Unemployed', return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Employed', return 'Not eligible'.
 * - If the age is above 65, return 'Eligible'.
 */
fun findStatus(age: Int, income: Int, employment: String): String {

    return when {
        age < 18 -> "Not eligible"
        age in 18..65 -> {
            when {
                income < 5000 -> "Eligible"
                income in 5000..10000 && employment == "Unemployed" -> "Eligible"
                else -> "Not eligible"
            }
        }
        else -> "Eligible"
    }
}
/**
 * A function to determine the eligibility for social worker assistance based on age, income, and employment status.
 *
 * - If the age is less than 18, return 'Not eligible'.
 * - If the age is between 18 and 65 (both inclusive), and the income is below 5000, return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Unemployed', return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Employed', return 'Not eligible'.
 * - If the age is above 65, return 'Eligible'.
 */
fun findStatus(age: Int, income: Int, employment: String): String {
/**
 * A function to determine the eligibility for social worker assistance based on age, income, and employment status.
 *
 * - If the age is less than 18, return 'Not eligible'.
 * - If the age is between 18 and 65 (both inclusive), and the income is below 5000, return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Unemployed', return 'Eligible'.
 * - If the age is between 18 and 65 (both inclusive), the income is between 5000 and 10000 (both inclusive), and the employment status is 'Employed', return 'Not eligible'.
 * - If the age is above 65, return 'Eligible'.
 */
fun findStatus(age: Int, income: Int, employment: String): String {

    return when {
        age < 18 -> "Not eligible"
        age in 18..65 -> {
            when {
                income < 5000 -> "Eligible"
                income in 5000..10000 && employment == "Unemployed" -> "Eligible"
                else -> "Not eligible"
            }
        }
        else -> "Eligible"
    }
}