/**
 * Given a list of products and a dictionary of stock, check if each product is available.
 * If a product is available, store true in the availability list, otherwise store false.
 * Display the availability list at the end.
 */
fun checkProductAvailability(products: List<String>, stock: Map<String, Int>): List<Boolean> {

    val availability = mutableListOf<Boolean>()

    for (product in products) {
        if (stock.containsKey(product)) {
            availability.add(true)
        } else {
            availability.add(false)
        }
    }

    return availability
}
/**
 * Given a list of products and a dictionary of stock, check if each product is available.
 * If a product is available, store true in the availability list, otherwise store false.
 * Display the availability list at the end.
 */
fun checkProductAvailability(products: List<String>, stock: Map<String, Int>): List<Boolean> {
/**
 * Given a list of products and a dictionary of stock, check if each product is available.
 * If a product is available, store true in the availability list, otherwise store false.
 * Display the availability list at the end.
 */
fun checkProductAvailability(products: List<String>, stock: Map<String, Int>): List<Boolean> {

    val availability = mutableListOf<Boolean>()

    for (product in products) {
        if (stock.containsKey(product)) {
            availability.add(true)
        } else {
            availability.add(false)
        }
    }

    return availability
}