/**
 * This function takes in two strings and returns a set of common characters between them.
 */
fun getCommonCharacters(string1: String, string2: String): Set<Char> {

    val commonCharacters = mutableSetOf<Char>()

    // Iterate over every character in string1
    for (char1 in string1) {
        // Iterate over every character in string2
        for (char2 in string2) {
            // Check if the characters are the same
            if (char1 == char2) {
                // Add the character to the set of common characters
                commonCharacters.add(char1)
            }
        }
    }

    return commonCharacters
}
/**
 * This function takes in two strings and returns a set of common characters between them.
 */
fun getCommonCharacters(string1: String, string2: String): Set<Char> {
/**
 * This function takes in two strings and returns a set of common characters between them.
 */
fun getCommonCharacters(string1: String, string2: String): Set<Char> {

    val commonCharacters = mutableSetOf<Char>()

    // Iterate over every character in string1
    for (char1 in string1) {
        // Iterate over every character in string2
        for (char2 in string2) {
            // Check if the characters are the same
            if (char1 == char2) {
                // Add the character to the set of common characters
                commonCharacters.add(char1)
            }
        }
    }

    return commonCharacters
}