/**
 * This function retrieves the designs from the given list 'designs' based on the provided 'tags'.
 * The function returns a list of matching designs.
 *
 * @param designs List of design names.
 * @param tags List of tags representing design characteristics.
 * @return List of designs matching the provided tags.
 */
fun retrieveDesigns(designs: List<String>, tags: List<String>): List<String> {

    val matchingDesigns = mutableListOf<String>()

    for (design in designs) {
        var match = true
        for (tag in tags) {
            if (!design.contains(tag)) {
                match = false
                break
            }
        }
        if (match) {
            matchingDesigns.add(design)
        }
    }

    return matchingDesigns
}
/**
 * This function retrieves the designs from the given list 'designs' based on the provided 'tags'.
 * The function returns a list of matching designs.
 *
 * @param designs List of design names.
 * @param tags List of tags representing design characteristics.
 * @return List of designs matching the provided tags.
 */
fun retrieveDesigns(designs: List<String>, tags: List<String>): List<String> {
/**
 * This function retrieves the designs from the given list 'designs' based on the provided 'tags'.
 * The function returns a list of matching designs.
 *
 * @param designs List of design names.
 * @param tags List of tags representing design characteristics.
 * @return List of designs matching the provided tags.
 */
fun retrieveDesigns(designs: List<String>, tags: List<String>): List<String> {

    val matchingDesigns = mutableListOf<String>()

    for (design in designs) {
        var match = true
        for (tag in tags) {
            if (!design.contains(tag)) {
                match = false
                break
            }
        }
        if (match) {
            matchingDesigns.add(design)
        }
    }

    return matchingDesigns
}