/**
 * This function takes two lists - clothesList and accessoriesList -
 * and returns a list of items that are common to both lists.
 *
 * @param clothesList a list of clothes items
 * @param accessoriesList a list of accessory items
 * @return a list of common items between clothesList and accessoriesList
 */
fun findCommonItems(clothesList: List<String>, accessoriesList: List<String>): List<String> {

    val commonItems = mutableListOf<String>()

    for (item in clothesList) {
        if (item in accessoriesList) {
            commonItems.add(item)
        }
    }

    return commonItems
}
/**
 * This function takes two lists - clothesList and accessoriesList -
 * and returns a list of items that are common to both lists.
 *
 * @param clothesList a list of clothes items
 * @param accessoriesList a list of accessory items
 * @return a list of common items between clothesList and accessoriesList
 */
fun findCommonItems(clothesList: List<String>, accessoriesList: List<String>): List<String> {
/**
 * This function takes two lists - clothesList and accessoriesList -
 * and returns a list of items that are common to both lists.
 *
 * @param clothesList a list of clothes items
 * @param accessoriesList a list of accessory items
 * @return a list of common items between clothesList and accessoriesList
 */
fun findCommonItems(clothesList: List<String>, accessoriesList: List<String>): List<String> {

    val commonItems = mutableListOf<String>()

    for (item in clothesList) {
        if (item in accessoriesList) {
            commonItems.add(item)
        }
    }

    return commonItems
}