/**
 * Given a list of outfits and a tuple of colors, generate all possible combinations
 * of outfits that include at least one color from the provided tuple.
 *
 * @param outfits A list of outfits, where each outfit is represented as a string.
 * @param colors A tuple of colors, where each color is represented as a string.
 * @return A list of pairs representing the possible combinations of outfits.
 */
fun getOutfitCombinations(outfits: List<String>, colors: List<String>): List<Pair<String, String>> {

    // Generate all possible combinations of outfits
    val allCombinations = mutableListOf<Pair<String, String>>()
    for (i in outfits.indices) {
        for (j in i + 1 until outfits.size) {
            allCombinations.add(Pair(outfits[i], outfits[j]))
        }
    }

    // Filter the combinations to include only those outfits with at least one color
    val validCombinations = mutableListOf<Pair<String, String>>()
    for (combination in allCombinations) {
        for (color in colors) {
            if (color in combination.first || color in combination.second) {
                validCombinations.add(combination)
                break
            }
        }
    }

    return validCombinations
}
/**
 * Given a list of outfits and a tuple of colors, generate all possible combinations
 * of outfits that include at least one color from the provided tuple.
 *
 * @param outfits A list of outfits, where each outfit is represented as a string.
 * @param colors A tuple of colors, where each color is represented as a string.
 * @return A list of pairs representing the possible combinations of outfits.
 */
fun getOutfitCombinations(outfits: List<String>, colors: List<String>): List<Pair<String, String>> {
/**
 * Given a list of outfits and a tuple of colors, generate all possible combinations
 * of outfits that include at least one color from the provided tuple.
 *
 * @param outfits A list of outfits, where each outfit is represented as a string.
 * @param colors A tuple of colors, where each color is represented as a string.
 * @return A list of pairs representing the possible combinations of outfits.
 */
fun getOutfitCombinations(outfits: List<String>, colors: List<String>): List<Pair<String, String>> {

    // Generate all possible combinations of outfits
    val allCombinations = mutableListOf<Pair<String, String>>()
    for (i in outfits.indices) {
        for (j in i + 1 until outfits.size) {
            allCombinations.add(Pair(outfits[i], outfits[j]))
        }
    }

    // Filter the combinations to include only those outfits with at least one color
    val validCombinations = mutableListOf<Pair<String, String>>()
    for (combination in allCombinations) {
        for (color in colors) {
            if (color in combination.first || color in combination.second) {
                validCombinations.add(combination)
                break
            }
        }
    }

    return validCombinations
}