/**
 * This function takes a dictionary as input and modifies its items.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun updateDictionary(dictionary: MutableMap<String, String>): MutableMap<String, String> {

    var counter = 1

    for (key in dictionary.keys) {
        var temp = key

        while (true) {
            if (temp.isNotEmpty()) {
                dictionary[key] = dictionary[key] + counter.toString()
                counter++
                temp = temp.substring(1)
            } else {
                break
            }
        }
    }

    return dictionary
}
/**
 * This function takes a dictionary as input and modifies its items.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun updateDictionary(dictionary: MutableMap<String, String>): MutableMap<String, String> {
/**
 * This function takes a dictionary as input and modifies its items.
 *
 * @param dictionary The dictionary to be modified.
 * @return The modified dictionary.
 */
fun updateDictionary(dictionary: MutableMap<String, String>): MutableMap<String, String> {

    var counter = 1

    for (key in dictionary.keys) {
        var temp = key

        while (true) {
            if (temp.isNotEmpty()) {
                dictionary[key] = dictionary[key] + counter.toString()
                counter++
                temp = temp.substring(1)
            } else {
                break
            }
        }
    }

    return dictionary
}