/**
 * This function takes a list of items and a budget amount as input.
 * It calculates and returns the remaining budget after purchasing the selected items.
 * If any item exceeds the budget, it skips to the next item.
 */
fun calculateBudget(items: List<Map<String, Int>>, budget: Int): Int {

    var remainingBudget = budget

    for (item in items) {
        // Check if the item price exceeds the remaining budget
        if (item["price"]!! > remainingBudget) {
            // Skip to the next item
            continue
        }

        // Subtract the item price from the remaining budget
        remainingBudget -= item["price"]!!
    }

    return remainingBudget
}
/**
 * This function takes a list of items and a budget amount as input.
 * It calculates and returns the remaining budget after purchasing the selected items.
 * If any item exceeds the budget, it skips to the next item.
 */
fun calculateBudget(items: List<Map<String, Int>>, budget: Int): Int {
/**
 * This function takes a list of items and a budget amount as input.
 * It calculates and returns the remaining budget after purchasing the selected items.
 * If any item exceeds the budget, it skips to the next item.
 */
fun calculateBudget(items: List<Map<String, Int>>, budget: Int): Int {

    var remainingBudget = budget

    for (item in items) {
        // Check if the item price exceeds the remaining budget
        if (item["price"]!! > remainingBudget) {
            // Skip to the next item
            continue
        }

        // Subtract the item price from the remaining budget
        remainingBudget -= item["price"]!!
    }

    return remainingBudget
}