/**
 * As a Marketing Manager, you need to create a set of unique values by iterating over a dictionary.
 * Your task is to complete the 'createSetAndIterate' function that takes a dictionary as input.
 * The function should iterate over the dictionary and store the unique values in a set.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A set of unique values extracted from the dictionary.
 *
 * Example:
 * val givenDictionary = mapOf("key1" to "value1", "key2" to "value2", "key3" to "value1", "key4" to "value3")
 * createSetAndIterate(givenDictionary) => setOf("value1", "value2", "value3")
 */
fun createSetAndIterate(dictionary: Map<String, String>): Set<String> {

    val uniqueValues = mutableSetOf<String>()  // Initialize an empty set to store unique values

    // Iterate over the dictionary and collect the unique values
    for (value in dictionary.values) {
        if (value !in uniqueValues) {
            uniqueValues.add(value)
        }
    }

    return uniqueValues
}
/**
 * As a Marketing Manager, you need to create a set of unique values by iterating over a dictionary.
 * Your task is to complete the 'createSetAndIterate' function that takes a dictionary as input.
 * The function should iterate over the dictionary and store the unique values in a set.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A set of unique values extracted from the dictionary.
 *
 * Example:
 * val givenDictionary = mapOf("key1" to "value1", "key2" to "value2", "key3" to "value1", "key4" to "value3")
 * createSetAndIterate(givenDictionary) => setOf("value1", "value2", "value3")
 */
fun createSetAndIterate(dictionary: Map<String, String>): Set<String> {
/**
 * As a Marketing Manager, you need to create a set of unique values by iterating over a dictionary.
 * Your task is to complete the 'createSetAndIterate' function that takes a dictionary as input.
 * The function should iterate over the dictionary and store the unique values in a set.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return A set of unique values extracted from the dictionary.
 *
 * Example:
 * val givenDictionary = mapOf("key1" to "value1", "key2" to "value2", "key3" to "value1", "key4" to "value3")
 * createSetAndIterate(givenDictionary) => setOf("value1", "value2", "value3")
 */
fun createSetAndIterate(dictionary: Map<String, String>): Set<String> {

    val uniqueValues = mutableSetOf<String>()  // Initialize an empty set to store unique values

    // Iterate over the dictionary and collect the unique values
    for (value in dictionary.values) {
        if (value !in uniqueValues) {
            uniqueValues.add(value)
        }
    }

    return uniqueValues
}