/**
 * Update the price of each product in the products map
 * based on the discount value.
 *
 * @param products A map with product name as key and price as value
 * @param discount The discount percentage to be applied
 * @return The updated products map with discounted prices
 */
fun updateDiscountPrice(products: MutableMap<String, Double>, discount: Double): MutableMap<String, Double> {

    // Iterate through each product in the map
    for ((product, price) in products) {
        // Calculate the discounted price
        val discountedPrice = price - (price * (discount / 100))
        // Update the price of the product in the map
        products[product] = discountedPrice
    }

    return products
}
/**
 * Update the price of each product in the products map
 * based on the discount value.
 *
 * @param products A map with product name as key and price as value
 * @param discount The discount percentage to be applied
 * @return The updated products map with discounted prices
 */
fun updateDiscountPrice(products: MutableMap<String, Double>, discount: Double): MutableMap<String, Double> {
/**
 * Update the price of each product in the products map
 * based on the discount value.
 *
 * @param products A map with product name as key and price as value
 * @param discount The discount percentage to be applied
 * @return The updated products map with discounted prices
 */
fun updateDiscountPrice(products: MutableMap<String, Double>, discount: Double): MutableMap<String, Double> {

    // Iterate through each product in the map
    for ((product, price) in products) {
        // Calculate the discounted price
        val discountedPrice = price - (price * (discount / 100))
        // Update the price of the product in the map
        products[product] = discountedPrice
    }

    return products
}