/**
 * This function takes a list of actors and a dictionary of awards,
 * and checks whether each actor in the list has won any awards or not.
 * If an actor has won awards, it adds the actor's name to the 'awards' list.
 * The function returns the updated 'awards' list.
 */
fun checkAward(actorList: List<String>, awards: MutableMap<String, Int>): MutableMap<String, Int> {

    for (actor in actorList) {
        // Check if the actor has won any awards
        if (awards.containsKey(actor)) {
            // Add the actor's name to the 'awards' list
            awards[actor] = awards[actor]!! + 1
        } else {
            // Add the actor to the 'awards' list with a count of 1
            awards[actor] = 1
        }
    }
    return awards
}
/**
 * This function takes a list of actors and a dictionary of awards,
 * and checks whether each actor in the list has won any awards or not.
 * If an actor has won awards, it adds the actor's name to the 'awards' list.
 * The function returns the updated 'awards' list.
 */
fun checkAward(actorList: List<String>, awards: MutableMap<String, Int>): MutableMap<String, Int> {
/**
 * This function takes a list of actors and a dictionary of awards,
 * and checks whether each actor in the list has won any awards or not.
 * If an actor has won awards, it adds the actor's name to the 'awards' list.
 * The function returns the updated 'awards' list.
 */
fun checkAward(actorList: List<String>, awards: MutableMap<String, Int>): MutableMap<String, Int> {

    for (actor in actorList) {
        // Check if the actor has won any awards
        if (awards.containsKey(actor)) {
            // Add the actor's name to the 'awards' list
            awards[actor] = awards[actor]!! + 1
        } else {
            // Add the actor to the 'awards' list with a count of 1
            awards[actor] = 1
        }
    }
    return awards
}