/**
 * This function takes in two actor/actress names and
 * returns a list of common letters between the two names.
 */
fun findCommonLetters(actorName1: String, actorName2: String): List<Char> {

    val commonLetters = mutableListOf<Char>()
    for (letter1 in actorName1) {
        for (letter2 in actorName2) {
            if (letter1 == letter2) {
                commonLetters.add(letter1)
            }
        }
    }
    return commonLetters
}
/**
 * This function takes in two actor/actress names and
 * returns a list of common letters between the two names.
 */
fun findCommonLetters(actorName1: String, actorName2: String): List<Char> {
/**
 * This function takes in two actor/actress names and
 * returns a list of common letters between the two names.
 */
fun findCommonLetters(actorName1: String, actorName2: String): List<Char> {

    val commonLetters = mutableListOf<Char>()
    for (letter1 in actorName1) {
        for (letter2 in actorName2) {
            if (letter1 == letter2) {
                commonLetters.add(letter1)
            }
        }
    }
    return commonLetters
}