/**
 * Given a dictionary, concatenate all the values into a single string.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A string representing the concatenated values of the dictionary.
 *
 * Example:
 * val dictionary = mapOf(
 *     "name" to "John",
 *     "age" to 30,
 *     "city" to "New York"
 * )
 * concatenateDictValues(dictionary) -> "JohnNew York"
 */
fun concatenateDictValues(dictionary: Map<String, Any>): String {

    var concatenatedString = ""

    for (value in dictionary.values) {
        if (value is String) {
            concatenatedString += value
        }
    }

    return concatenatedString
}
/**
 * Given a dictionary, concatenate all the values into a single string.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A string representing the concatenated values of the dictionary.
 *
 * Example:
 * val dictionary = mapOf(
 *     "name" to "John",
 *     "age" to 30,
 *     "city" to "New York"
 * )
 * concatenateDictValues(dictionary) -> "JohnNew York"
 */
fun concatenateDictValues(dictionary: Map<String, Any>): String {
/**
 * Given a dictionary, concatenate all the values into a single string.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A string representing the concatenated values of the dictionary.
 *
 * Example:
 * val dictionary = mapOf(
 *     "name" to "John",
 *     "age" to 30,
 *     "city" to "New York"
 * )
 * concatenateDictValues(dictionary) -> "JohnNew York"
 */
fun concatenateDictValues(dictionary: Map<String, Any>): String {

    var concatenatedString = ""

    for (value in dictionary.values) {
        if (value is String) {
            concatenatedString += value
        }
    }

    return concatenatedString
}