/**
 * Given an inventory of clothes available in different stores, return all the clothes that are in stock.
 *
 * @param inventory A nested map representing the inventory of clothes available in different stores.
 * @return A list of clothes that are currently in stock.
 */
fun findClothesInStock(inventory: Map<String, Map<String, Map<String, Int>>>): List<String> {

    val inStockClothes = mutableListOf<String>()

    inventory.forEach { (store, stock) ->
        stock.forEach { (clothingType, sizes) ->
            sizes.forEach { (size, stocks) ->
                if (stocks > 0) {
                    inStockClothes.add("$size $clothingType in $store")
                }
            }
        }
    }

    return inStockClothes
}
/**
 * Given an inventory of clothes available in different stores, return all the clothes that are in stock.
 *
 * @param inventory A nested map representing the inventory of clothes available in different stores.
 * @return A list of clothes that are currently in stock.
 */
fun findClothesInStock(inventory: Map<String, Map<String, Map<String, Int>>>): List<String> {
/**
 * Given an inventory of clothes available in different stores, return all the clothes that are in stock.
 *
 * @param inventory A nested map representing the inventory of clothes available in different stores.
 * @return A list of clothes that are currently in stock.
 */
fun findClothesInStock(inventory: Map<String, Map<String, Map<String, Int>>>): List<String> {

    val inStockClothes = mutableListOf<String>()

    inventory.forEach { (store, stock) ->
        stock.forEach { (clothingType, sizes) ->
            sizes.forEach { (size, stocks) ->
                if (stocks > 0) {
                    inStockClothes.add("$size $clothingType in $store")
                }
            }
        }
    }

    return inStockClothes
}