/**
 * Given a set of names, iterate through each name and remove all vowels from the name using loops.
 * The modified names should be stored in another set and returned.
 *
 * Example:
 * nameSet = setOf("John", "Emily", "Robert")
 * Output: setOf("Jhn", "Rbrt")
 *
 * @param nameSet A set of strings representing names
 * @return A set of modified names with all vowels removed
 */
fun removeVowels(nameSet: Set<String>): Set<String> {

    val modifiedNames = mutableSetOf<String>()

    for (name in nameSet) {
        var modifiedName = ""
        for (char in name) {
            if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
                modifiedName += char
            }
        }
        modifiedNames.add(modifiedName)
    }

    return modifiedNames
}
/**
 * Given a set of names, iterate through each name and remove all vowels from the name using loops.
 * The modified names should be stored in another set and returned.
 *
 * Example:
 * nameSet = setOf("John", "Emily", "Robert")
 * Output: setOf("Jhn", "Rbrt")
 *
 * @param nameSet A set of strings representing names
 * @return A set of modified names with all vowels removed
 */
fun removeVowels(nameSet: Set<String>): Set<String> {
/**
 * Given a set of names, iterate through each name and remove all vowels from the name using loops.
 * The modified names should be stored in another set and returned.
 *
 * Example:
 * nameSet = setOf("John", "Emily", "Robert")
 * Output: setOf("Jhn", "Rbrt")
 *
 * @param nameSet A set of strings representing names
 * @return A set of modified names with all vowels removed
 */
fun removeVowels(nameSet: Set<String>): Set<String> {

    val modifiedNames = mutableSetOf<String>()

    for (name in nameSet) {
        var modifiedName = ""
        for (char in name) {
            if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
                modifiedName += char
            }
        }
        modifiedNames.add(modifiedName)
    }

    return modifiedNames
}