/**
 * This function takes a nested tuple containing the orbits of minor planets and returns a list of tuples representing the
 * orbits that are not in the asteroid belt.
 *
 * @param orbitData A nested tuple with each inner tuple containing the name of the minor planet and its orbit data.
 * @return A list of tuples representing the orbits of minor planets that are not in the asteroid belt.
 *
 * Example:
 * '``
 * val orbits = listOf(("Ceres", "Asteroid belt"), ("Pluto", "Kuiper belt"), ("Jupiter", "Gas giant"), ("Earth", "Inner planets"))
 * getMinorPlanetsOrbits(orbits)
 * // Output: [('Pluto', 'Kuiper belt'), ('Jupiter', 'Gas giant'), ('Earth', 'Inner planets')]
 * '``
 */
fun getMinorPlanetsOrbits(orbitData: List<Pair<String, String>>): List<Pair<String, String>> {

    val notAsteroidBeltOrbits = mutableListOf<Pair<String, String>>()

    for ((planet, orbit) in orbitData) {
        if (!orbit.startsWith("Asteroid belt")) {
            notAsteroidBeltOrbits.add(planet to orbit)
        }
    }

    return notAsteroidBeltOrbits
}
/**
 * This function takes a nested tuple containing the orbits of minor planets and returns a list of tuples representing the
 * orbits that are not in the asteroid belt.
 *
 * @param orbitData A nested tuple with each inner tuple containing the name of the minor planet and its orbit data.
 * @return A list of tuples representing the orbits of minor planets that are not in the asteroid belt.
 *
 * Example:
 * '``
 * val orbits = listOf(("Ceres", "Asteroid belt"), ("Pluto", "Kuiper belt"), ("Jupiter", "Gas giant"), ("Earth", "Inner planets"))
 * getMinorPlanetsOrbits(orbits)
 * // Output: [('Pluto', 'Kuiper belt'), ('Jupiter', 'Gas giant'), ('Earth', 'Inner planets')]
 * '``
 */
fun getMinorPlanetsOrbits(orbitData: List<Pair<String, String>>): List<Pair<String, String>> {
/**
 * This function takes a nested tuple containing the orbits of minor planets and returns a list of tuples representing the
 * orbits that are not in the asteroid belt.
 *
 * @param orbitData A nested tuple with each inner tuple containing the name of the minor planet and its orbit data.
 * @return A list of tuples representing the orbits of minor planets that are not in the asteroid belt.
 *
 * Example:
 * '``
 * val orbits = listOf(("Ceres", "Asteroid belt"), ("Pluto", "Kuiper belt"), ("Jupiter", "Gas giant"), ("Earth", "Inner planets"))
 * getMinorPlanetsOrbits(orbits)
 * // Output: [('Pluto', 'Kuiper belt'), ('Jupiter', 'Gas giant'), ('Earth', 'Inner planets')]
 * '``
 */
fun getMinorPlanetsOrbits(orbitData: List<Pair<String, String>>): List<Pair<String, String>> {

    val notAsteroidBeltOrbits = mutableListOf<Pair<String, String>>()

    for ((planet, orbit) in orbitData) {
        if (!orbit.startsWith("Asteroid belt")) {
            notAsteroidBeltOrbits.add(planet to orbit)
        }
    }

    return notAsteroidBeltOrbits
}