/**
 * Given a list of names and a nested list of skills, create a set that contains the names of Aerospace Engineers
 * who possess exactly 4 or more skills.
 *
 * @param namesList List of names of Aerospace Engineers.
 * @param skillsList Nested list of skills possessed by the respective Aerospace Engineer.
 * @return Set containing the names of Aerospace Engineers with 4 or more skills.
 */
fun createEngineerSet(namesList: List<String>, skillsList: List<List<String>>): Set<String> {

    val engineerSet = mutableSetOf<String>()

    for (i in namesList.indices) {
        if (skillsList[i].size >= 4) {
            engineerSet.add(namesList[i])
        }
    }

    return engineerSet
}

// Example usage
/**
 * Given a list of names and a nested list of skills, create a set that contains the names of Aerospace Engineers
 * who possess exactly 4 or more skills.
 *
 * @param namesList List of names of Aerospace Engineers.
 * @param skillsList Nested list of skills possessed by the respective Aerospace Engineer.
 * @return Set containing the names of Aerospace Engineers with 4 or more skills.
 */
fun createEngineerSet(namesList: List<String>, skillsList: List<List<String>>): Set<String> {
/**
 * Given a list of names and a nested list of skills, create a set that contains the names of Aerospace Engineers
 * who possess exactly 4 or more skills.
 *
 * @param namesList List of names of Aerospace Engineers.
 * @param skillsList Nested list of skills possessed by the respective Aerospace Engineer.
 * @return Set containing the names of Aerospace Engineers with 4 or more skills.
 */
fun createEngineerSet(namesList: List<String>, skillsList: List<List<String>>): Set<String> {

    val engineerSet = mutableSetOf<String>()

    for (i in namesList.indices) {
        if (skillsList[i].size >= 4) {
            engineerSet.add(namesList[i])
        }
    }

    return engineerSet
}

// Example usage