/**
 * Given a dictionary and a key name, return the value associated with the key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param key A string representing the name of the key.
 * @return The value associated with the given key.
 *
 * Example:
 * val dictionary = mapOf("a" to 5, "b" to 10, "c" to 15)
 * val key = "b"
 * getDictionaryValue(dictionary, key) => 10
 */
fun getDictionaryValue(dictionary: Map<String, Int>, key: String): Int {

    return dictionary[key] ?: throw IllegalArgumentException("Key not found in dictionary")
}
/**
 * Given a dictionary and a key name, return the value associated with the key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param key A string representing the name of the key.
 * @return The value associated with the given key.
 *
 * Example:
 * val dictionary = mapOf("a" to 5, "b" to 10, "c" to 15)
 * val key = "b"
 * getDictionaryValue(dictionary, key) => 10
 */
fun getDictionaryValue(dictionary: Map<String, Int>, key: String): Int {
/**
 * Given a dictionary and a key name, return the value associated with the key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param key A string representing the name of the key.
 * @return The value associated with the given key.
 *
 * Example:
 * val dictionary = mapOf("a" to 5, "b" to 10, "c" to 15)
 * val key = "b"
 * getDictionaryValue(dictionary, key) => 10
 */
fun getDictionaryValue(dictionary: Map<String, Int>, key: String): Int {

    return dictionary[key] ?: throw IllegalArgumentException("Key not found in dictionary")
}