/**
 * Find the common movies between actor1 and actor2.
 *
 * @param actor1 set of movies the first actor has acted in
 * @param actor2 set of movies the second actor has acted in
 * @return set the common movies between actor1 and actor2
 */
fun findCommonMovies(actor1: Set<String>, actor2: Set<String>): Set<String> {

    val commonMovies = mutableSetOf<String>()

    for (movie1 in actor1) {
        for (movie2 in actor2) {
            if (movie1 == movie2) {
                commonMovies.add(movie1)
            }
        }
    }

    return commonMovies
}
/**
 * Find the common movies between actor1 and actor2.
 *
 * @param actor1 set of movies the first actor has acted in
 * @param actor2 set of movies the second actor has acted in
 * @return set the common movies between actor1 and actor2
 */
fun findCommonMovies(actor1: Set<String>, actor2: Set<String>): Set<String> {
/**
 * Find the common movies between actor1 and actor2.
 *
 * @param actor1 set of movies the first actor has acted in
 * @param actor2 set of movies the second actor has acted in
 * @return set the common movies between actor1 and actor2
 */
fun findCommonMovies(actor1: Set<String>, actor2: Set<String>): Set<String> {

    val commonMovies = mutableSetOf<String>()

    for (movie1 in actor1) {
        for (movie2 in actor2) {
            if (movie1 == movie2) {
                commonMovies.add(movie1)
            }
        }
    }

    return commonMovies
}