/**
 * Remove specified planets from the given celestialObjects set.
 *
 * @param celestialObjects A set of celestial objects.
 * @param planets A set of planets to be removed from celestialObjects.
 * @return The modified celestialObjects set after removing the specified planets.
 */
fun removePlanets(celestialObjects: MutableSet<String>, planets: Set<String>): MutableSet<String> {

    // Check if both sets are non-empty
    if (celestialObjects.isEmpty() || planets.isEmpty()) {
        return celestialObjects
    }
    
    // Remove the planets from celestialObjects set
    celestialObjects.removeAll(planets)
    
    return celestialObjects
}

// Example Usage:
/**
 * Remove specified planets from the given celestialObjects set.
 *
 * @param celestialObjects A set of celestial objects.
 * @param planets A set of planets to be removed from celestialObjects.
 * @return The modified celestialObjects set after removing the specified planets.
 */
fun removePlanets(celestialObjects: MutableSet<String>, planets: Set<String>): MutableSet<String> {
/**
 * Remove specified planets from the given celestialObjects set.
 *
 * @param celestialObjects A set of celestial objects.
 * @param planets A set of planets to be removed from celestialObjects.
 * @return The modified celestialObjects set after removing the specified planets.
 */
fun removePlanets(celestialObjects: MutableSet<String>, planets: Set<String>): MutableSet<String> {

    // Check if both sets are non-empty
    if (celestialObjects.isEmpty() || planets.isEmpty()) {
        return celestialObjects
    }
    
    // Remove the planets from celestialObjects set
    celestialObjects.removeAll(planets)
    
    return celestialObjects
}

// Example Usage: