/**
 * Modify the inventory of a farmer's farm by multiplying the quantities of certain items.
 *
 * The 'farmInventory" is a map where the keys represent the names of items and the
 * values represent the quantities of those items. Your task is to loop through the items in
 * the inventory and, if the item name starts with a vowel, multiply its quantity by 2.
 *
 * @param farmInventory A map representing the farmer's inventory.
 * @return The modified farmInventory map after multiplying the quantities.
 */
fun modifyFarmInventory(farmInventory: MutableMap<String, Int>): MutableMap<String, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')

    for ((item, quantity) in farmInventory.toList()) {
        if (item[0].toLowerCase() in vowels) {
            farmInventory[item] = quantity * 2
        }
    }

    return farmInventory
}
/**
 * Modify the inventory of a farmer's farm by multiplying the quantities of certain items.
 *
 * The 'farmInventory" is a map where the keys represent the names of items and the
 * values represent the quantities of those items. Your task is to loop through the items in
 * the inventory and, if the item name starts with a vowel, multiply its quantity by 2.
 *
 * @param farmInventory A map representing the farmer's inventory.
 * @return The modified farmInventory map after multiplying the quantities.
 */
fun modifyFarmInventory(farmInventory: MutableMap<String, Int>): MutableMap<String, Int> {
/**
 * Modify the inventory of a farmer's farm by multiplying the quantities of certain items.
 *
 * The 'farmInventory" is a map where the keys represent the names of items and the
 * values represent the quantities of those items. Your task is to loop through the items in
 * the inventory and, if the item name starts with a vowel, multiply its quantity by 2.
 *
 * @param farmInventory A map representing the farmer's inventory.
 * @return The modified farmInventory map after multiplying the quantities.
 */
fun modifyFarmInventory(farmInventory: MutableMap<String, Int>): MutableMap<String, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')

    for ((item, quantity) in farmInventory.toList()) {
        if (item[0].toLowerCase() in vowels) {
            farmInventory[item] = quantity * 2
        }
    }

    return farmInventory
}