/**
 * Determine whether a carpenter has the required skills for a given job.
 *
 * @param carpenterSkills Tuple containing the skills possessed by the carpenter.
 * @param job The job that needs to be done.
 * @return True if the carpenter has the required skills for the job, False otherwise.
 */
fun carpenterJobs(carpenterSkills: List<String>, job: String): Boolean {

    // Define a map with job requirements and corresponding skills
    val jobRequirements = mapOf(
        "Building a deck" to listOf("Carpentry", "Deck design", "Woodworking"),
        "Installing cabinets" to listOf("Carpentry", "Cabinet installation", "Woodworking"),
        "Constructing a wooden fence" to listOf("Carpentry", "Fence construction", "Woodworking")
    )

    // Check if the job is in the list of job requirements and if the carpenter has the required skills
    return jobRequirements.containsKey(job) && jobRequirements[job]!!.all { skill -> carpenterSkills.contains(skill) }
}
/**
 * Determine whether a carpenter has the required skills for a given job.
 *
 * @param carpenterSkills Tuple containing the skills possessed by the carpenter.
 * @param job The job that needs to be done.
 * @return True if the carpenter has the required skills for the job, False otherwise.
 */
fun carpenterJobs(carpenterSkills: List<String>, job: String): Boolean {
/**
 * Determine whether a carpenter has the required skills for a given job.
 *
 * @param carpenterSkills Tuple containing the skills possessed by the carpenter.
 * @param job The job that needs to be done.
 * @return True if the carpenter has the required skills for the job, False otherwise.
 */
fun carpenterJobs(carpenterSkills: List<String>, job: String): Boolean {

    // Define a map with job requirements and corresponding skills
    val jobRequirements = mapOf(
        "Building a deck" to listOf("Carpentry", "Deck design", "Woodworking"),
        "Installing cabinets" to listOf("Carpentry", "Cabinet installation", "Woodworking"),
        "Constructing a wooden fence" to listOf("Carpentry", "Fence construction", "Woodworking")
    )

    // Check if the job is in the list of job requirements and if the carpenter has the required skills
    return jobRequirements.containsKey(job) && jobRequirements[job]!!.all { skill -> carpenterSkills.contains(skill) }
}