/**
 * Given two lists of interior design categories, returns a new list that contains the intersection
 * of the two original lists.
 *
 * @param interiors List of interior design categories.
 * @param categories List of interior design categories.
 * @return List containing the intersection of the two original lists.
 */
fun concatenateTuples(interiors: List<String>, categories: List<String>): List<String> {

    // Convert the lists into sets for easy comparison
    val interiorsSet = interiors.toSet()
    val categoriesSet = categories.toSet()

    // Calculate the intersection of the two sets
    val intersection = interiorsSet.intersect(categoriesSet)

    // Sort and return the intersection as a list
    return intersection.sorted()
}
/**
 * Given two lists of interior design categories, returns a new list that contains the intersection
 * of the two original lists.
 *
 * @param interiors List of interior design categories.
 * @param categories List of interior design categories.
 * @return List containing the intersection of the two original lists.
 */
fun concatenateTuples(interiors: List<String>, categories: List<String>): List<String> {
/**
 * Given two lists of interior design categories, returns a new list that contains the intersection
 * of the two original lists.
 *
 * @param interiors List of interior design categories.
 * @param categories List of interior design categories.
 * @return List containing the intersection of the two original lists.
 */
fun concatenateTuples(interiors: List<String>, categories: List<String>): List<String> {

    // Convert the lists into sets for easy comparison
    val interiorsSet = interiors.toSet()
    val categoriesSet = categories.toSet()

    // Calculate the intersection of the two sets
    val intersection = interiorsSet.intersect(categoriesSet)

    // Sort and return the intersection as a list
    return intersection.sorted()
}