/**
 * This function takes a dictionary of athletes and their ratings as input and
 * returns the name of the athlete who has the least ratings among all.
 *
 * @param athleteDict A dictionary where the keys represent the names of the athletes
 *                    and the values represent their corresponding ratings.
 * @return The name of the athlete with the least ratings in the given dictionary.
 */
fun findAthleteWithLessRatings(athleteDict: Map<String, Int>): String {

    var minRating = Int.MAX_VALUE
    var minRatingAthlete = ""

    for ((athlete, rating) in athleteDict) {
        if (rating < minRating) {
            minRating = rating
            minRatingAthlete = athlete
        }
    }

    return minRatingAthlete
}
/**
 * This function takes a dictionary of athletes and their ratings as input and
 * returns the name of the athlete who has the least ratings among all.
 *
 * @param athleteDict A dictionary where the keys represent the names of the athletes
 *                    and the values represent their corresponding ratings.
 * @return The name of the athlete with the least ratings in the given dictionary.
 */
fun findAthleteWithLessRatings(athleteDict: Map<String, Int>): String {
/**
 * This function takes a dictionary of athletes and their ratings as input and
 * returns the name of the athlete who has the least ratings among all.
 *
 * @param athleteDict A dictionary where the keys represent the names of the athletes
 *                    and the values represent their corresponding ratings.
 * @return The name of the athlete with the least ratings in the given dictionary.
 */
fun findAthleteWithLessRatings(athleteDict: Map<String, Int>): String {

    var minRating = Int.MAX_VALUE
    var minRatingAthlete = ""

    for ((athlete, rating) in athleteDict) {
        if (rating < minRating) {
            minRating = rating
            minRatingAthlete = athlete
        }
    }

    return minRatingAthlete
}