/**
 * Given a dictionary, a key, and a value, modify the value of the specified key in the dictionary.
 *
 * @param dictionary The input dictionary.
 * @param key The key to modify.
 * @param value The value to assign to the key.
 * @return The modified dictionary.
 */
fun modifyDictionary(dictionary: MutableMap<String, Int>, key: String, value: Int): MutableMap<String, Int> {

    // Your task is to implement a function that modifies the value of the specified key in the dictionary.
    // The function should use the multiplication assignment operator to multiply the current value by the given value.

    if (!dictionary.containsKey(key)) {
        return mutableMapOf("error" to -1) // Key does not exist in the dictionary.
    }

    dictionary[key] = dictionary[key]!! * value
    return dictionary
}
/**
 * Given a dictionary, a key, and a value, modify the value of the specified key in the dictionary.
 *
 * @param dictionary The input dictionary.
 * @param key The key to modify.
 * @param value The value to assign to the key.
 * @return The modified dictionary.
 */
fun modifyDictionary(dictionary: MutableMap<String, Int>, key: String, value: Int): MutableMap<String, Int> {
/**
 * Given a dictionary, a key, and a value, modify the value of the specified key in the dictionary.
 *
 * @param dictionary The input dictionary.
 * @param key The key to modify.
 * @param value The value to assign to the key.
 * @return The modified dictionary.
 */
fun modifyDictionary(dictionary: MutableMap<String, Int>, key: String, value: Int): MutableMap<String, Int> {

    // Your task is to implement a function that modifies the value of the specified key in the dictionary.
    // The function should use the multiplication assignment operator to multiply the current value by the given value.

    if (!dictionary.containsKey(key)) {
        return mutableMapOf("error" to -1) // Key does not exist in the dictionary.
    }

    dictionary[key] = dictionary[key]!! * value
    return dictionary
}