/**
 * This function takes a planet name and a list of planets in the solar system.
 * It returns the index of the specified planet in the list.
 *
 * @param planetName Name of the planet to search for.
 * @param solarSystem List of planets in the solar system.
 * @return Index of the specified planet in the list, or -1 if not found.
 */
fun findPlanetIndex(planetName: String, solarSystem: List<String>): Int {

    var index = 0
    while (index < solarSystem.size) {
        if (solarSystem[index] == planetName) {
            return index
        }
        index++
    }
    return -1  // Returns -1 if the specified planet is not found in the list
}
/**
 * This function takes a planet name and a list of planets in the solar system.
 * It returns the index of the specified planet in the list.
 *
 * @param planetName Name of the planet to search for.
 * @param solarSystem List of planets in the solar system.
 * @return Index of the specified planet in the list, or -1 if not found.
 */
fun findPlanetIndex(planetName: String, solarSystem: List<String>): Int {
/**
 * This function takes a planet name and a list of planets in the solar system.
 * It returns the index of the specified planet in the list.
 *
 * @param planetName Name of the planet to search for.
 * @param solarSystem List of planets in the solar system.
 * @return Index of the specified planet in the list, or -1 if not found.
 */
fun findPlanetIndex(planetName: String, solarSystem: List<String>): Int {

    var index = 0
    while (index < solarSystem.size) {
        if (solarSystem[index] == planetName) {
            return index
        }
        index++
    }
    return -1  // Returns -1 if the specified planet is not found in the list
}