/**
 * This function takes two lists as arguments and returns a new tuple containing only the elements that are common to both lists.
 *
 * @param lst1 First list of elements.
 * @param lst2 Second list of elements.
 * @return A tuple containing the elements that are common to both lists.
 *
 * Example:
 * intersectTuples(listOf("apple", "banana", "cherry"), listOf("banana", "grape", "orange")) // Output: ["banana"]
 */
fun intersectTuples(lst1: List<String>, lst2: List<String>): List<String> {

    // Convert the lists to sets to find the common elements
    val set1 = lst1.toSet()
    val set2 = lst2.toSet()

    // Find the common elements and convert them back to a list
    val commonElements = set1.intersect(set2).toList()

    return commonElements
}
/**
 * This function takes two lists as arguments and returns a new tuple containing only the elements that are common to both lists.
 *
 * @param lst1 First list of elements.
 * @param lst2 Second list of elements.
 * @return A tuple containing the elements that are common to both lists.
 *
 * Example:
 * intersectTuples(listOf("apple", "banana", "cherry"), listOf("banana", "grape", "orange")) // Output: ["banana"]
 */
fun intersectTuples(lst1: List<String>, lst2: List<String>): List<String> {
/**
 * This function takes two lists as arguments and returns a new tuple containing only the elements that are common to both lists.
 *
 * @param lst1 First list of elements.
 * @param lst2 Second list of elements.
 * @return A tuple containing the elements that are common to both lists.
 *
 * Example:
 * intersectTuples(listOf("apple", "banana", "cherry"), listOf("banana", "grape", "orange")) // Output: ["banana"]
 */
fun intersectTuples(lst1: List<String>, lst2: List<String>): List<String> {

    // Convert the lists to sets to find the common elements
    val set1 = lst1.toSet()
    val set2 = lst2.toSet()

    // Find the common elements and convert them back to a list
    val commonElements = set1.intersect(set2).toList()

    return commonElements
}