/**
 * Given a list of planets, find the largest planet and return its name.
 * If there are no planets in the list, return null.
 */
fun findLargestPlanet(planets: List<Map<String, Any>>): String? {

    var largestPlanet: Map<String, Any>? = null

    for (planet in planets) {
        if (largestPlanet == null || planet["radius"] as Int > largestPlanet["radius"] as Int) {
            largestPlanet = planet
        }
    }

    if (largestPlanet == null) {
        return null
    }

    return largestPlanet["name"] as String
}
/**
 * Given a list of planets, find the largest planet and return its name.
 * If there are no planets in the list, return null.
 */
fun findLargestPlanet(planets: List<Map<String, Any>>): String? {
/**
 * Given a list of planets, find the largest planet and return its name.
 * If there are no planets in the list, return null.
 */
fun findLargestPlanet(planets: List<Map<String, Any>>): String? {

    var largestPlanet: Map<String, Any>? = null

    for (planet in planets) {
        if (largestPlanet == null || planet["radius"] as Int > largestPlanet["radius"] as Int) {
            largestPlanet = planet
        }
    }

    if (largestPlanet == null) {
        return null
    }

    return largestPlanet["name"] as String
}