/**
 * Given a list of names and a specific name, remove all occurrences of that name from the list.
 *
 * @param names The list of names to remove from.
 * @param givenName The specific name to remove from the list.
 * @return A list of names with the given name removed.
 */
fun removeGivenName(names: List<String>, givenName: String): List<String> {

    // Remove all occurrences of givenName from the list
    return names.filter { it != givenName }
}
/**
 * Given a list of names and a specific name, remove all occurrences of that name from the list.
 *
 * @param names The list of names to remove from.
 * @param givenName The specific name to remove from the list.
 * @return A list of names with the given name removed.
 */
fun removeGivenName(names: List<String>, givenName: String): List<String> {
/**
 * Given a list of names and a specific name, remove all occurrences of that name from the list.
 *
 * @param names The list of names to remove from.
 * @param givenName The specific name to remove from the list.
 * @return A list of names with the given name removed.
 */
fun removeGivenName(names: List<String>, givenName: String): List<String> {

    // Remove all occurrences of givenName from the list
    return names.filter { it != givenName }
}