/**
 * Given two actor names, this function returns a list of common letters
 * between the two names.
 *
 * @param actor1 The name of the first actor.
 * @param actor2 The name of the second actor.
 * @return A list containing the common letters found in the two names.
 */
fun findCommonLetters(actor1: String, actor2: String): List<Char> {

    val commonLetters = mutableListOf<Char>()
    for (letter1 in actor1) {
        for (letter2 in actor2) {
            if (letter1 == letter2) {
                commonLetters.add(letter1)
                break
            }
        }
    }
    return commonLetters
}
/**
 * Given two actor names, this function returns a list of common letters
 * between the two names.
 *
 * @param actor1 The name of the first actor.
 * @param actor2 The name of the second actor.
 * @return A list containing the common letters found in the two names.
 */
fun findCommonLetters(actor1: String, actor2: String): List<Char> {
/**
 * Given two actor names, this function returns a list of common letters
 * between the two names.
 *
 * @param actor1 The name of the first actor.
 * @param actor2 The name of the second actor.
 * @return A list containing the common letters found in the two names.
 */
fun findCommonLetters(actor1: String, actor2: String): List<Char> {

    val commonLetters = mutableListOf<Char>()
    for (letter1 in actor1) {
        for (letter2 in actor2) {
            if (letter1 == letter2) {
                commonLetters.add(letter1)
                break
            }
        }
    }
    return commonLetters
}