/**
 * Given a list of fashion items and a budget, select the items that can be purchased within the budget.
 *
 * @param fashionItems a map containing fashion items as keys and their prices as values
 * @param budget an integer representing the available budget
 * @return a list of fashion items that can be purchased within the budget
 */
fun selectItems(fashionItems: Map<String, Int>, budget: Int): List<String> {

    val affordableItems = mutableListOf<String>() // List to store items that can be purchased within the budget

    // Iterate through each fashion item and check if its price is less than or equal to the budget
    for ((item, price) in fashionItems) {
        if (price <= budget) {
            affordableItems.add(item) // Add the item to the list of affordable items
        }
    }

    return affordableItems
}
/**
 * Given a list of fashion items and a budget, select the items that can be purchased within the budget.
 *
 * @param fashionItems a map containing fashion items as keys and their prices as values
 * @param budget an integer representing the available budget
 * @return a list of fashion items that can be purchased within the budget
 */
fun selectItems(fashionItems: Map<String, Int>, budget: Int): List<String> {
/**
 * Given a list of fashion items and a budget, select the items that can be purchased within the budget.
 *
 * @param fashionItems a map containing fashion items as keys and their prices as values
 * @param budget an integer representing the available budget
 * @return a list of fashion items that can be purchased within the budget
 */
fun selectItems(fashionItems: Map<String, Int>, budget: Int): List<String> {

    val affordableItems = mutableListOf<String>() // List to store items that can be purchased within the budget

    // Iterate through each fashion item and check if its price is less than or equal to the budget
    for ((item, price) in fashionItems) {
        if (price <= budget) {
            affordableItems.add(item) // Add the item to the list of affordable items
        }
    }

    return affordableItems
}