/**
 * This function takes a police officer's name and a set of elements as arguments.
 * It adds each element from the set to a new set only if the length of the element's name
 * is not equal to the length of the police officer's name. Finally, it returns the new set.
 *
 * @param policeOfficer The name of the police officer.
 * @param elements The set of elements to be added.
 * @return The set containing only elements whose length is not equal to the police officer's name length.
 */
fun isNotOperatorAddElements(policeOfficer: String, elements: Set<String>): Set<String> {

    val newSet = mutableSetOf<String>() // Create an empty set to store the elements

    for (element in elements) { // Iterate through each element in the set
        if (element.length != policeOfficer.length) { // Check if the length of the element is not equal to officer's name length
            newSet.add(element) // Add the element to the new set if condition is satisfied
        }
    }

    return newSet.toSet()
}
/**
 * This function takes a police officer's name and a set of elements as arguments.
 * It adds each element from the set to a new set only if the length of the element's name
 * is not equal to the length of the police officer's name. Finally, it returns the new set.
 *
 * @param policeOfficer The name of the police officer.
 * @param elements The set of elements to be added.
 * @return The set containing only elements whose length is not equal to the police officer's name length.
 */
fun isNotOperatorAddElements(policeOfficer: String, elements: Set<String>): Set<String> {
/**
 * This function takes a police officer's name and a set of elements as arguments.
 * It adds each element from the set to a new set only if the length of the element's name
 * is not equal to the length of the police officer's name. Finally, it returns the new set.
 *
 * @param policeOfficer The name of the police officer.
 * @param elements The set of elements to be added.
 * @return The set containing only elements whose length is not equal to the police officer's name length.
 */
fun isNotOperatorAddElements(policeOfficer: String, elements: Set<String>): Set<String> {

    val newSet = mutableSetOf<String>() // Create an empty set to store the elements

    for (element in elements) { // Iterate through each element in the set
        if (element.length != policeOfficer.length) { // Check if the length of the element is not equal to officer's name length
            newSet.add(element) // Add the element to the new set if condition is satisfied
        }
    }

    return newSet.toSet()
}