/**
 * This function determines whether a lawyer is eligible for a specific case based on age, experience, and qualifications.
 *
 * @param lawyerAge Age of the lawyer in years
 * @param experienceYears Years of experience the lawyer has
 * @param qualifications List containing the qualifications of the lawyer
 * @return Eligibility status for the lawyer ('Eligible', 'Not Eligible', or 'Insufficient experience')
 */
fun isLawyerEligible(lawyerAge: Int, experienceYears: Int, qualifications: List<String>): String {

    val minAge = 25
    val minExperience = 5
    val requiredQualifications = listOf("bar_exam", "law_degree")

    return when {
        lawyerAge >= minAge && experienceYears >= minExperience -> {
            if (requiredQualifications.all { it in qualifications }) {
                "Eligible"
            } else {
                "Not Eligible - Insufficient qualifications"
            }
        }
        experienceYears < minExperience -> "Insufficient experience"
        else -> "Not Eligible"
    }
}
/**
 * This function determines whether a lawyer is eligible for a specific case based on age, experience, and qualifications.
 *
 * @param lawyerAge Age of the lawyer in years
 * @param experienceYears Years of experience the lawyer has
 * @param qualifications List containing the qualifications of the lawyer
 * @return Eligibility status for the lawyer ('Eligible', 'Not Eligible', or 'Insufficient experience')
 */
fun isLawyerEligible(lawyerAge: Int, experienceYears: Int, qualifications: List<String>): String {
/**
 * This function determines whether a lawyer is eligible for a specific case based on age, experience, and qualifications.
 *
 * @param lawyerAge Age of the lawyer in years
 * @param experienceYears Years of experience the lawyer has
 * @param qualifications List containing the qualifications of the lawyer
 * @return Eligibility status for the lawyer ('Eligible', 'Not Eligible', or 'Insufficient experience')
 */
fun isLawyerEligible(lawyerAge: Int, experienceYears: Int, qualifications: List<String>): String {

    val minAge = 25
    val minExperience = 5
    val requiredQualifications = listOf("bar_exam", "law_degree")

    return when {
        lawyerAge >= minAge && experienceYears >= minExperience -> {
            if (requiredQualifications.all { it in qualifications }) {
                "Eligible"
            } else {
                "Not Eligible - Insufficient qualifications"
            }
        }
        experienceYears < minExperience -> "Insufficient experience"
        else -> "Not Eligible"
    }
}