/**
 * This function takes a character name and a word as arguments and returns the common characters between them.
 */
fun findCommonCharacters(characterName: String, word: String): String {

    // Initialize an empty string to store the common characters
    var commonCharacters = ""

    // Use string indexing to iterate through each character in the character name
    for (character in characterName) {
        // Use the membership operator to check if the character is present in the word
        if (character in word) {
            // Append the common character to the commonCharacters string
            commonCharacters += character
        }
    }

    // Return the final common characters
    return commonCharacters
}
/**
 * This function takes a character name and a word as arguments and returns the common characters between them.
 */
fun findCommonCharacters(characterName: String, word: String): String {
/**
 * This function takes a character name and a word as arguments and returns the common characters between them.
 */
fun findCommonCharacters(characterName: String, word: String): String {

    // Initialize an empty string to store the common characters
    var commonCharacters = ""

    // Use string indexing to iterate through each character in the character name
    for (character in characterName) {
        // Use the membership operator to check if the character is present in the word
        if (character in word) {
            // Append the common character to the commonCharacters string
            commonCharacters += character
        }
    }

    // Return the final common characters
    return commonCharacters
}