/**
 * Checks if a teacher is a senior teacher based on their age and experience.
 *
 * @param age The age of the teacher.
 * @param experience The years of teaching experience.
 * @return True if the teacher is a senior teacher, False otherwise.
 */
fun isSeniorTeacher(age: Int, experience: Int): Boolean {

    return (age > 50 || experience > 20) && !(age < 40 && experience < 10)
}

// Example usage
/**
 * Checks if a teacher is a senior teacher based on their age and experience.
 *
 * @param age The age of the teacher.
 * @param experience The years of teaching experience.
 * @return True if the teacher is a senior teacher, False otherwise.
 */
fun isSeniorTeacher(age: Int, experience: Int): Boolean {
/**
 * Checks if a teacher is a senior teacher based on their age and experience.
 *
 * @param age The age of the teacher.
 * @param experience The years of teaching experience.
 * @return True if the teacher is a senior teacher, False otherwise.
 */
fun isSeniorTeacher(age: Int, experience: Int): Boolean {

    return (age > 50 || experience > 20) && !(age < 40 && experience < 10)
}

// Example usage