/**
 * Given a dictionary and a list of keys, this function returns the concatenated value of those keys in the dictionary.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keys A list of keys whose values need to be concatenated.
 * @return The concatenated value of the given keys in the dictionary.
 *
 * Example:
 * val myDict = mapOf("a" to "Hello", "b" to "World", "c" to "!")
 * getConcatenatedValue(myDict, listOf("a", "b", "c")) // Output: "HelloWorld!"
 */
fun getConcatenatedValue(dictionary: Map<String, String>, keys: List<String>): String {

    var concatenatedValue = ""
    for (key in keys) {
        if (dictionary.containsKey(key)) {
            concatenatedValue += dictionary[key]
        }
    }
    return concatenatedValue
}
/**
 * Given a dictionary and a list of keys, this function returns the concatenated value of those keys in the dictionary.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keys A list of keys whose values need to be concatenated.
 * @return The concatenated value of the given keys in the dictionary.
 *
 * Example:
 * val myDict = mapOf("a" to "Hello", "b" to "World", "c" to "!")
 * getConcatenatedValue(myDict, listOf("a", "b", "c")) // Output: "HelloWorld!"
 */
fun getConcatenatedValue(dictionary: Map<String, String>, keys: List<String>): String {
/**
 * Given a dictionary and a list of keys, this function returns the concatenated value of those keys in the dictionary.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keys A list of keys whose values need to be concatenated.
 * @return The concatenated value of the given keys in the dictionary.
 *
 * Example:
 * val myDict = mapOf("a" to "Hello", "b" to "World", "c" to "!")
 * getConcatenatedValue(myDict, listOf("a", "b", "c")) // Output: "HelloWorld!"
 */
fun getConcatenatedValue(dictionary: Map<String, String>, keys: List<String>): String {

    var concatenatedValue = ""
    for (key in keys) {
        if (dictionary.containsKey(key)) {
            concatenatedValue += dictionary[key]
        }
    }
    return concatenatedValue
}