/**
 * A fashion designer wants to create outfits using different combinations of colors and patterns.
 * Given a list of colors and patterns, the designer wants to generate all possible outfit combinations using nested while loops.
 * Write a function that takes in two lists, colors and patterns, and returns a list of tuples representing all possible outfit combinations.
 * Each tuple should contain a color and a pattern combination that has not already been used.
 */
fun createOutfits(colors: List<String>, patterns: List<String>): List<Pair<String, String>> {

    val outfits = mutableListOf<Pair<String, String>>()
    var i = 0

    while (i < colors.size) {
        var j = 0
        while (j < patterns.size) {
            val outfit = Pair(colors[i], patterns[j])
            if (outfit !in outfits) {
                outfits.add(outfit)
            }
            j++
        }
        i++
    }

    return outfits
}
/**
 * A fashion designer wants to create outfits using different combinations of colors and patterns.
 * Given a list of colors and patterns, the designer wants to generate all possible outfit combinations using nested while loops.
 * Write a function that takes in two lists, colors and patterns, and returns a list of tuples representing all possible outfit combinations.
 * Each tuple should contain a color and a pattern combination that has not already been used.
 */
fun createOutfits(colors: List<String>, patterns: List<String>): List<Pair<String, String>> {
/**
 * A fashion designer wants to create outfits using different combinations of colors and patterns.
 * Given a list of colors and patterns, the designer wants to generate all possible outfit combinations using nested while loops.
 * Write a function that takes in two lists, colors and patterns, and returns a list of tuples representing all possible outfit combinations.
 * Each tuple should contain a color and a pattern combination that has not already been used.
 */
fun createOutfits(colors: List<String>, patterns: List<String>): List<Pair<String, String>> {

    val outfits = mutableListOf<Pair<String, String>>()
    var i = 0

    while (i < colors.size) {
        var j = 0
        while (j < patterns.size) {
            val outfit = Pair(colors[i], patterns[j])
            if (outfit !in outfits) {
                outfits.add(outfit)
            }
            j++
        }
        i++
    }

    return outfits
}