/**
 * Given two texts, find the set of common words between them.
 *
 * Example:
 * text1 = "I love coding in Python"
 * text2 = "Coding is my passion"
 * getCommonWords(text1, text2)
 *
 * @param text1 First text
 * @param text2 Second text
 * @return Set of common words between text1 and text2
 *
 * Hints:
 * 1. Use the intersect method of set to get the common words.
 * 2. Use the split method to split the texts into words.
 */
fun getCommonWords(text1: String, text2: String): Set<String> {

    // Split the texts into words
    val words1 = text1.toLowerCase().split(" ").toSet()
    val words2 = text2.toLowerCase().split(" ").toSet()

    // Find the common words
    val commonWords = words1.intersect(words2)

    return commonWords
}
/**
 * Given two texts, find the set of common words between them.
 *
 * Example:
 * text1 = "I love coding in Python"
 * text2 = "Coding is my passion"
 * getCommonWords(text1, text2)
 *
 * @param text1 First text
 * @param text2 Second text
 * @return Set of common words between text1 and text2
 *
 * Hints:
 * 1. Use the intersect method of set to get the common words.
 * 2. Use the split method to split the texts into words.
 */
fun getCommonWords(text1: String, text2: String): Set<String> {
/**
 * Given two texts, find the set of common words between them.
 *
 * Example:
 * text1 = "I love coding in Python"
 * text2 = "Coding is my passion"
 * getCommonWords(text1, text2)
 *
 * @param text1 First text
 * @param text2 Second text
 * @return Set of common words between text1 and text2
 *
 * Hints:
 * 1. Use the intersect method of set to get the common words.
 * 2. Use the split method to split the texts into words.
 */
fun getCommonWords(text1: String, text2: String): Set<String> {

    // Split the texts into words
    val words1 = text1.toLowerCase().split(" ").toSet()
    val words2 = text2.toLowerCase().split(" ").toSet()

    // Find the common words
    val commonWords = words1.intersect(words2)

    return commonWords
}