/**
 * As an anthropologist studying different cultures, you have collected two sets of words: words1 and words2.
 *
 * Your task is to implement a function that returns a list of common words between the two sets using the OR operator.
 *
 * @param words1 A set of words
 * @param words2 Another set of words
 * @return A list of common words between words1 and words2
 *
 * Example:
 * findCommonWords(setOf("apple", "banana", "orange", "pear"), setOf("orange", "grape", "kiwi", "mango"))
 * Output: ["orange"]
 *
 * Note:
 * - The order of the words in the output does not matter.
 * - The result should not contain any duplicate words.
 * - The function should be case-sensitive.
 */
fun findCommonWords(words1: Set<String>, words2: Set<String>): List<String> {

    val commonWords = (words1 union words2).toList()
    return commonWords
}
/**
 * As an anthropologist studying different cultures, you have collected two sets of words: words1 and words2.
 *
 * Your task is to implement a function that returns a list of common words between the two sets using the OR operator.
 *
 * @param words1 A set of words
 * @param words2 Another set of words
 * @return A list of common words between words1 and words2
 *
 * Example:
 * findCommonWords(setOf("apple", "banana", "orange", "pear"), setOf("orange", "grape", "kiwi", "mango"))
 * Output: ["orange"]
 *
 * Note:
 * - The order of the words in the output does not matter.
 * - The result should not contain any duplicate words.
 * - The function should be case-sensitive.
 */
fun findCommonWords(words1: Set<String>, words2: Set<String>): List<String> {
/**
 * As an anthropologist studying different cultures, you have collected two sets of words: words1 and words2.
 *
 * Your task is to implement a function that returns a list of common words between the two sets using the OR operator.
 *
 * @param words1 A set of words
 * @param words2 Another set of words
 * @return A list of common words between words1 and words2
 *
 * Example:
 * findCommonWords(setOf("apple", "banana", "orange", "pear"), setOf("orange", "grape", "kiwi", "mango"))
 * Output: ["orange"]
 *
 * Note:
 * - The order of the words in the output does not matter.
 * - The result should not contain any duplicate words.
 * - The function should be case-sensitive.
 */
fun findCommonWords(words1: Set<String>, words2: Set<String>): List<String> {

    val commonWords = (words1 union words2).toList()
    return commonWords
}