/**
 * Given a budget and a dictionary of items with their prices,
 * find the items that are less expensive than the budget.
 *
 * @param budget The maximum amount of money the interior designer can spend.
 * @param items A dictionary mapping item names to their prices.
 * @return A list of item names that are less expensive than the budget.
 */
fun findAffordableItems(budget: Double, items: Map<String, Double>): List<String> {

    val affordableItems = mutableListOf<String>()  // Stores the names of affordable items

    // Loop through the dictionary using items.entries
    for ((item, price) in items.entries) {
        if (price < budget) {  // Check if the price of the item is less than the budget
            affordableItems.add(item)  // Add the name of the affordable item to the list
        }
    }

    return affordableItems
}
/**
 * Given a budget and a dictionary of items with their prices,
 * find the items that are less expensive than the budget.
 *
 * @param budget The maximum amount of money the interior designer can spend.
 * @param items A dictionary mapping item names to their prices.
 * @return A list of item names that are less expensive than the budget.
 */
fun findAffordableItems(budget: Double, items: Map<String, Double>): List<String> {
/**
 * Given a budget and a dictionary of items with their prices,
 * find the items that are less expensive than the budget.
 *
 * @param budget The maximum amount of money the interior designer can spend.
 * @param items A dictionary mapping item names to their prices.
 * @return A list of item names that are less expensive than the budget.
 */
fun findAffordableItems(budget: Double, items: Map<String, Double>): List<String> {

    val affordableItems = mutableListOf<String>()  // Stores the names of affordable items

    // Loop through the dictionary using items.entries
    for ((item, price) in items.entries) {
        if (price < budget) {  // Check if the price of the item is less than the budget
            affordableItems.add(item)  // Add the name of the affordable item to the list
        }
    }

    return affordableItems
}