/**
 * Given a dictionary, this function modifies the values of the dictionary items using a while loop.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun modifyDictItems(dictionary: MutableMap<String, Int>): MutableMap<String, Int> {

    // Get the list of keys from the dictionary
    val keys = dictionary.keys.toList()

    // Initialize the loop control variable
    var i = 0

    // Begin while loop
    while (i < keys.size) {
        // Get the value corresponding to the current key
        val value = dictionary[keys[i]] ?: 0

        // Increment the value by 1
        dictionary[keys[i]] = value + 1

        // Move on to the next key
        i++
    }

    // Return the modified dictionary
    return dictionary
}
/**
 * Given a dictionary, this function modifies the values of the dictionary items using a while loop.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun modifyDictItems(dictionary: MutableMap<String, Int>): MutableMap<String, Int> {
/**
 * Given a dictionary, this function modifies the values of the dictionary items using a while loop.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun modifyDictItems(dictionary: MutableMap<String, Int>): MutableMap<String, Int> {

    // Get the list of keys from the dictionary
    val keys = dictionary.keys.toList()

    // Initialize the loop control variable
    var i = 0

    // Begin while loop
    while (i < keys.size) {
        // Get the value corresponding to the current key
        val value = dictionary[keys[i]] ?: 0

        // Increment the value by 1
        dictionary[keys[i]] = value + 1

        // Move on to the next key
        i++
    }

    // Return the modified dictionary
    return dictionary
}