/**
 * This function takes as input a fashion designer's name and a list of clothes and returns the selected clothes
 * based on the exercise criteria.
 *
 * @param name The name of the fashion designer.
 * @param clothes A list of clothes.
 * @return The selected clothes based on the exercise criteria.
 */
fun fashionDesigner(name: String, clothes: List<String>): List<String> {

    // Check if the name is valid
    if (name.isEmpty() || name !is String) {
        println("Invalid name!")
        return emptyList()
    }

    // Check if the clothes list is valid
    if (clothes.isEmpty() || clothes !is List<String>) {
        println("Invalid clothes list!")
        return emptyList()
    }

    // Convert all clothes names to lowercase for case-insensitive comparison
    val clothesLowerCase = clothes.map { it.toLowerCase() }

    // Create an empty list to store the selected clothes
    val selectedClothes = mutableListOf<String>()

    // Iterate through the clothes list using the step parameter
    for (i in clothesLowerCase.indices step 2) {
        val clothing = clothesLowerCase[i] // Get the current clothing item

        // Check if the clothing item starts with the first letter of the
    }

    return selectedClothes
}
/**
 * This function takes as input a fashion designer's name and a list of clothes and returns the selected clothes
 * based on the exercise criteria.
 *
 * @param name The name of the fashion designer.
 * @param clothes A list of clothes.
 * @return The selected clothes based on the exercise criteria.
 */
fun fashionDesigner(name: String, clothes: List<String>): List<String> {
/**
 * This function takes as input a fashion designer's name and a list of clothes and returns the selected clothes
 * based on the exercise criteria.
 *
 * @param name The name of the fashion designer.
 * @param clothes A list of clothes.
 * @return The selected clothes based on the exercise criteria.
 */
fun fashionDesigner(name: String, clothes: List<String>): List<String> {

    // Check if the name is valid
    if (name.isEmpty() || name !is String) {
        println("Invalid name!")
        return emptyList()
    }

    // Check if the clothes list is valid
    if (clothes.isEmpty() || clothes !is List<String>) {
        println("Invalid clothes list!")
        return emptyList()
    }

    // Convert all clothes names to lowercase for case-insensitive comparison
    val clothesLowerCase = clothes.map { it.toLowerCase() }

    // Create an empty list to store the selected clothes
    val selectedClothes = mutableListOf<String>()

    // Iterate through the clothes list using the step parameter
    for (i in clothesLowerCase.indices step 2) {
        val clothing = clothesLowerCase[i] // Get the current clothing item

        // Check if the clothing item starts with the first letter of the
    }

    return selectedClothes
}