/**
 * Given a word and a dictionary, this function returns a list of synonyms
 * of the word if it exists in the dictionary.
 *
 * @param word The word to look up in the dictionary.
 * @param dictionary The dictionary containing words as keys and lists of synonyms as values.
 * @return A list of synonyms of the word if found in the dictionary, otherwise an empty list.
 */
fun getSynonyms(word: String, dictionary: Map<String, List<String>>): List<String> {

    return dictionary[word] ?: emptyList()
}

// Exercise:

// Given the following dictionaries, complete the provided functions above to solve the exercise.

// Dictionary
/**
 * Given a word and a dictionary, this function returns a list of synonyms
 * of the word if it exists in the dictionary.
 *
 * @param word The word to look up in the dictionary.
 * @param dictionary The dictionary containing words as keys and lists of synonyms as values.
 * @return A list of synonyms of the word if found in the dictionary, otherwise an empty list.
 */
fun getSynonyms(word: String, dictionary: Map<String, List<String>>): List<String> {
/**
 * Given a word and a dictionary, this function returns a list of synonyms
 * of the word if it exists in the dictionary.
 *
 * @param word The word to look up in the dictionary.
 * @param dictionary The dictionary containing words as keys and lists of synonyms as values.
 * @return A list of synonyms of the word if found in the dictionary, otherwise an empty list.
 */
fun getSynonyms(word: String, dictionary: Map<String, List<String>>): List<String> {

    return dictionary[word] ?: emptyList()
}

// Exercise:

// Given the following dictionaries, complete the provided functions above to solve the exercise.

// Dictionary