/**
 * Given a dictionary of engineers and their skills, find all engineers who possess the given skills.
 *
 * @param engineers A dictionary where the keys represent engineer names and the values represent a list of skills.
 * @param skills A list of skills to search for.
 * @return A list of engineer names who possess all the given skills.
 */
fun findEngineersWithSkills(engineers: Map<String, List<String>>, skills: List<String>): List<String> {

    val matchingEngineers = mutableListOf<String>()

    // Iterate over each engineer in the dictionary
    for ((engineer, engineerSkills) in engineers) {
        // Check if all the skills are present in the engineer's skill set
        if (skills.all { skill -> engineerSkills.contains(skill) }) {
            matchingEngineers.add(engineer)
        }
    }

    return matchingEngineers
}
/**
 * Given a dictionary of engineers and their skills, find all engineers who possess the given skills.
 *
 * @param engineers A dictionary where the keys represent engineer names and the values represent a list of skills.
 * @param skills A list of skills to search for.
 * @return A list of engineer names who possess all the given skills.
 */
fun findEngineersWithSkills(engineers: Map<String, List<String>>, skills: List<String>): List<String> {
/**
 * Given a dictionary of engineers and their skills, find all engineers who possess the given skills.
 *
 * @param engineers A dictionary where the keys represent engineer names and the values represent a list of skills.
 * @param skills A list of skills to search for.
 * @return A list of engineer names who possess all the given skills.
 */
fun findEngineersWithSkills(engineers: Map<String, List<String>>, skills: List<String>): List<String> {

    val matchingEngineers = mutableListOf<String>()

    // Iterate over each engineer in the dictionary
    for ((engineer, engineerSkills) in engineers) {
        // Check if all the skills are present in the engineer's skill set
        if (skills.all { skill -> engineerSkills.contains(skill) }) {
            matchingEngineers.add(engineer)
        }
    }

    return matchingEngineers
}