/**
 * Returns a formatted string of common characters found in both sets.
 *
 * @param set1 The first set of characters.
 * @param set2 The second set of characters.
 * @return A formatted string of common characters found in both sets.
 */
fun findCommonCharacters(set1: Set<Char>, set2: Set<Char>): String {

    val commonChars = set1.intersect(set2)
    val commonCharsStr = commonChars.sorted().joinToString(", ")
    return "Common characters: $commonCharsStr"
}
/**
 * Returns a formatted string of common characters found in both sets.
 *
 * @param set1 The first set of characters.
 * @param set2 The second set of characters.
 * @return A formatted string of common characters found in both sets.
 */
fun findCommonCharacters(set1: Set<Char>, set2: Set<Char>): String {
/**
 * Returns a formatted string of common characters found in both sets.
 *
 * @param set1 The first set of characters.
 * @param set2 The second set of characters.
 * @return A formatted string of common characters found in both sets.
 */
fun findCommonCharacters(set1: Set<Char>, set2: Set<Char>): String {

    val commonChars = set1.intersect(set2)
    val commonCharsStr = commonChars.sorted().joinToString(", ")
    return "Common characters: $commonCharsStr"
}