/**
 * This function is used to create a collection of outfits designed by a fashion designer.
 *
 * @param fashionDesignerName The name of the fashion designer.
 * @param collectionName The name of the collection.
 * @param numOutfits The desired number of outfits in the collection.
 * @return A list of outfits created by the fashion designer for the collection.
 */
fun createCollection(fashionDesignerName: String, collectionName: String, numOutfits: Int): List<Map<String, String>> {

    val outfits = mutableListOf<Map<String, String>>() // Initialize an empty list to store the outfits
    var outfitCounter = 1 // Counter to keep track of the number of outfits created
    
    while (outfitCounter <= numOutfits) { // Loop until the desired number of outfits is achieved
        println("Creating outfit $outfitCounter/$numOutfits")
        
        val outfit = mutableMapOf<String, String>() // Initialize an empty map to store the details of each outfit
        
        // Complete the code below to prompt the fashion designer for input on the outfit details
        print("Enter the name of the outfit: ")
        outfit["name"] = readLine()!!
        print("Enter the color of the outfit: ")
        outfit["color"] = readLine()!!
        
        outfits.add(outfit) // Add the created outfit to the list of outfits
        outfitCounter++
    }
    
    return outfits
}
/**
 * This function is used to create a collection of outfits designed by a fashion designer.
 *
 * @param fashionDesignerName The name of the fashion designer.
 * @param collectionName The name of the collection.
 * @param numOutfits The desired number of outfits in the collection.
 * @return A list of outfits created by the fashion designer for the collection.
 */
fun createCollection(fashionDesignerName: String, collectionName: String, numOutfits: Int): List<Map<String, String>> {
/**
 * This function is used to create a collection of outfits designed by a fashion designer.
 *
 * @param fashionDesignerName The name of the fashion designer.
 * @param collectionName The name of the collection.
 * @param numOutfits The desired number of outfits in the collection.
 * @return A list of outfits created by the fashion designer for the collection.
 */
fun createCollection(fashionDesignerName: String, collectionName: String, numOutfits: Int): List<Map<String, String>> {

    val outfits = mutableListOf<Map<String, String>>() // Initialize an empty list to store the outfits
    var outfitCounter = 1 // Counter to keep track of the number of outfits created
    
    while (outfitCounter <= numOutfits) { // Loop until the desired number of outfits is achieved
        println("Creating outfit $outfitCounter/$numOutfits")
        
        val outfit = mutableMapOf<String, String>() // Initialize an empty map to store the details of each outfit
        
        // Complete the code below to prompt the fashion designer for input on the outfit details
        print("Enter the name of the outfit: ")
        outfit["name"] = readLine()!!
        print("Enter the color of the outfit: ")
        outfit["color"] = readLine()!!
        
        outfits.add(outfit) // Add the created outfit to the list of outfits
        outfitCounter++
    }
    
    return outfits
}