/**
 * This function takes two lists of movies and returns a list of movies that are present in both lists.
 */
fun findCommonMovies(movies1: List<String>, movies2: List<String>): List<String> {

    val commonMovies = mutableListOf<String>()

    for (movie1 in movies1) {
        for (movie2 in movies2) {
            if (movie1 == movie2) {
                commonMovies.add(movie1)
                break
            }
        }
    }

    return commonMovies
}
/**
 * This function takes two lists of movies and returns a list of movies that are present in both lists.
 */
fun findCommonMovies(movies1: List<String>, movies2: List<String>): List<String> {
/**
 * This function takes two lists of movies and returns a list of movies that are present in both lists.
 */
fun findCommonMovies(movies1: List<String>, movies2: List<String>): List<String> {

    val commonMovies = mutableListOf<String>()

    for (movie1 in movies1) {
        for (movie2 in movies2) {
            if (movie1 == movie2) {
                commonMovies.add(movie1)
                break
            }
        }
    }

    return commonMovies
}