/**
 * Given a list of actors, return the name of the actor who has acted in the maximum number of movies.
 *
 * @param actors List of pairs where each pair contains the actor/actress's name (String) and their movie count (Int).
 * @return Name of the actor/actress who has acted in the maximum number of movies.
 */
fun getActorName(actors: List<Pair<String, Int>>): String {

    var maxMovies = 0
    var actorName = ""

    for (actor in actors) {
        if (actor.second > maxMovies) {
            maxMovies = actor.second
            actorName = actor.first
        }
    }

    return actorName
}
/**
 * Given a list of actors, return the name of the actor who has acted in the maximum number of movies.
 *
 * @param actors List of pairs where each pair contains the actor/actress's name (String) and their movie count (Int).
 * @return Name of the actor/actress who has acted in the maximum number of movies.
 */
fun getActorName(actors: List<Pair<String, Int>>): String {
/**
 * Given a list of actors, return the name of the actor who has acted in the maximum number of movies.
 *
 * @param actors List of pairs where each pair contains the actor/actress's name (String) and their movie count (Int).
 * @return Name of the actor/actress who has acted in the maximum number of movies.
 */
fun getActorName(actors: List<Pair<String, Int>>): String {

    var maxMovies = 0
    var actorName = ""

    for (actor in actors) {
        if (actor.second > maxMovies) {
            maxMovies = actor.second
            actorName = actor.first
        }
    }

    return actorName
}