/**
 * Find the common characters between two strings.
 *
 * @param text1 The first input string.
 * @param text2 The second input string.
 * @return A set containing all common characters between both strings.
 */
fun getCommonCharacters(text1: String, text2: String): Set<Char> {

    val set1 = text1.toSet()
    val set2 = text2.toSet()
    return set1.intersect(set2)
}
/**
 * Find the common characters between two strings.
 *
 * @param text1 The first input string.
 * @param text2 The second input string.
 * @return A set containing all common characters between both strings.
 */
fun getCommonCharacters(text1: String, text2: String): Set<Char> {
/**
 * Find the common characters between two strings.
 *
 * @param text1 The first input string.
 * @param text2 The second input string.
 * @return A set containing all common characters between both strings.
 */
fun getCommonCharacters(text1: String, text2: String): Set<Char> {

    val set1 = text1.toSet()
    val set2 = text2.toSet()
    return set1.intersect(set2)
}