/**
 * This function checks if a fashion style and color match.
 *
 * @param style a string representing the fashion style
 * @param color a string representing the color
 * @return true if the style and color match, false otherwise
 */
fun checkStyle(style: String, color: String): Boolean {

    // Checking for valid style and color combinations
    val validStyleColorCombinations = mapOf(
        "casual" to listOf("black", "white", "blue"),
        "formal" to listOf("black", "gray", "navy"),
        "elegant" to listOf("black", "silver", "gold")
    )

    // Check if the style is valid
    if (style in validStyleColorCombinations) {
        // Check if the color is valid for the given style
        if (color in validStyleColorCombinations[style]!!) {
            return true
        }
    }

    // If the style or color is not valid or there is no match, return false
    return false
}
/**
 * This function checks if a fashion style and color match.
 *
 * @param style a string representing the fashion style
 * @param color a string representing the color
 * @return true if the style and color match, false otherwise
 */
fun checkStyle(style: String, color: String): Boolean {
/**
 * This function checks if a fashion style and color match.
 *
 * @param style a string representing the fashion style
 * @param color a string representing the color
 * @return true if the style and color match, false otherwise
 */
fun checkStyle(style: String, color: String): Boolean {

    // Checking for valid style and color combinations
    val validStyleColorCombinations = mapOf(
        "casual" to listOf("black", "white", "blue"),
        "formal" to listOf("black", "gray", "navy"),
        "elegant" to listOf("black", "silver", "gold")
    )

    // Check if the style is valid
    if (style in validStyleColorCombinations) {
        // Check if the color is valid for the given style
        if (color in validStyleColorCombinations[style]!!) {
            return true
        }
    }

    // If the style or color is not valid or there is no match, return false
    return false
}