/**
 * This function takes a set of planet names and a map containing star names and their respective planets.
 * It returns the name of the first planet found in the set that orbits a star present in the map.
 * If no planet is found, it returns 'No planet found'.
 */
fun findPlanet(planetSet: Set<String>, starMap: Map<String, Set<String>>): String {

    for (planet in planetSet) {
        for ((star, planets) in starMap) {
            if (planet in planets) {
                return planet
            }
        }
    }
    return "No planet found"
}
/**
 * This function takes a set of planet names and a map containing star names and their respective planets.
 * It returns the name of the first planet found in the set that orbits a star present in the map.
 * If no planet is found, it returns 'No planet found'.
 */
fun findPlanet(planetSet: Set<String>, starMap: Map<String, Set<String>>): String {
/**
 * This function takes a set of planet names and a map containing star names and their respective planets.
 * It returns the name of the first planet found in the set that orbits a star present in the map.
 * If no planet is found, it returns 'No planet found'.
 */
fun findPlanet(planetSet: Set<String>, starMap: Map<String, Set<String>>): String {

    for (planet in planetSet) {
        for ((star, planets) in starMap) {
            if (planet in planets) {
                return planet
            }
        }
    }
    return "No planet found"
}