/**
 * Determine if the musician is a guitarist based on age and years of experience.
 * Guitarists usually start at a young age and have several years of experience.
 *
 * @param age The age of the musician.
 * @param yearsOfExperience The number of years the musician has been playing.
 * @return True if the musician is likely a guitarist, False otherwise.
 */
fun isGuitarist(age: Int, yearsOfExperience: Int): Boolean {

    return when {
        age < 18 -> yearsOfExperience > 5
        age < 25 -> yearsOfExperience > 3
        age < 30 -> yearsOfExperience > 2
        else -> yearsOfExperience > 1
    }
}
/**
 * Determine if the musician is a guitarist based on age and years of experience.
 * Guitarists usually start at a young age and have several years of experience.
 *
 * @param age The age of the musician.
 * @param yearsOfExperience The number of years the musician has been playing.
 * @return True if the musician is likely a guitarist, False otherwise.
 */
fun isGuitarist(age: Int, yearsOfExperience: Int): Boolean {
/**
 * Determine if the musician is a guitarist based on age and years of experience.
 * Guitarists usually start at a young age and have several years of experience.
 *
 * @param age The age of the musician.
 * @param yearsOfExperience The number of years the musician has been playing.
 * @return True if the musician is likely a guitarist, False otherwise.
 */
fun isGuitarist(age: Int, yearsOfExperience: Int): Boolean {

    return when {
        age < 18 -> yearsOfExperience > 5
        age < 25 -> yearsOfExperience > 3
        age < 30 -> yearsOfExperience > 2
        else -> yearsOfExperience > 1
    }
}