/**
 * This function takes two strings as input and returns a tuple containing the common letters found between them.
 *
 * @param string1 The first input string.
 * @param string2 The second input string.
 * @return A tuple containing the common letters found between the two input strings.
 *
 * Example:
 * createCarpenterTuple("woodworking", "carpentry") // Returns ('o', 'd', 'r', 'k', 'g')
 */
fun createCarpenterTuple(string1: String, string2: String): Set<Char> {

    // Use string filtering to get a unique set of characters from each string
    val chars1 = string1.toSet()
    val chars2 = string2.toSet()

    // Find the common characters between the two sets
    val commonChars = chars1.intersect(chars2)

    return commonChars
}
/**
 * This function takes two strings as input and returns a tuple containing the common letters found between them.
 *
 * @param string1 The first input string.
 * @param string2 The second input string.
 * @return A tuple containing the common letters found between the two input strings.
 *
 * Example:
 * createCarpenterTuple("woodworking", "carpentry") // Returns ('o', 'd', 'r', 'k', 'g')
 */
fun createCarpenterTuple(string1: String, string2: String): Set<Char> {
/**
 * This function takes two strings as input and returns a tuple containing the common letters found between them.
 *
 * @param string1 The first input string.
 * @param string2 The second input string.
 * @return A tuple containing the common letters found between the two input strings.
 *
 * Example:
 * createCarpenterTuple("woodworking", "carpentry") // Returns ('o', 'd', 'r', 'k', 'g')
 */
fun createCarpenterTuple(string1: String, string2: String): Set<Char> {

    // Use string filtering to get a unique set of characters from each string
    val chars1 = string1.toSet()
    val chars2 = string2.toSet()

    // Find the common characters between the two sets
    val commonChars = chars1.intersect(chars2)

    return commonChars
}