/**
 * This function takes two actor names as input and returns a list of common characters in their names.
 *
 * @param actorName1 First actor name.
 * @param actorName2 Second actor name.
 * @return A list of common characters in the actor names.
 */
fun findCommonChars(actorName1: String, actorName2: String): List<Char> {

    val commonChars = mutableListOf<Char>()

    for (char1 in actorName1) {
        for (char2 in actorName2) {
            if (char1 == char2) {
                commonChars.add(char1)
            }
        }
    }

    return commonChars
}
/**
 * This function takes two actor names as input and returns a list of common characters in their names.
 *
 * @param actorName1 First actor name.
 * @param actorName2 Second actor name.
 * @return A list of common characters in the actor names.
 */
fun findCommonChars(actorName1: String, actorName2: String): List<Char> {
/**
 * This function takes two actor names as input and returns a list of common characters in their names.
 *
 * @param actorName1 First actor name.
 * @param actorName2 Second actor name.
 * @return A list of common characters in the actor names.
 */
fun findCommonChars(actorName1: String, actorName2: String): List<Char> {

    val commonChars = mutableListOf<Char>()

    for (char1 in actorName1) {
        for (char2 in actorName2) {
            if (char1 == char2) {
                commonChars.add(char1)
            }
        }
    }

    return commonChars
}