/**
 * This function takes two words as input and returns a list of characters that are present in both words, but
 * whose ASCII value is less than 100.
 *
 * @param word1 The first word.
 * @param word2 The second word.
 * @return A list of characters that are present in both words, but whose ASCII value is less than 100.
 */
fun commonCharsLessThan(word1: String, word2: String): List<Char> {

    val commonChars = mutableListOf<Char>()  // Initialize an empty list to store the common characters

    // Iterate over each character in the first word
    for (char1 in word1) {
        // Iterate over each character in the second word
        for (char2 in word2) {
            if (char1 == char2 && char1.toInt() < 100) {  // Check if the characters are the same and their ASCII value is less than 100
                commonChars.add(char1)  // Add the character to the commonChars list
            }
        }
    }

    return commonChars
}
/**
 * This function takes two words as input and returns a list of characters that are present in both words, but
 * whose ASCII value is less than 100.
 *
 * @param word1 The first word.
 * @param word2 The second word.
 * @return A list of characters that are present in both words, but whose ASCII value is less than 100.
 */
fun commonCharsLessThan(word1: String, word2: String): List<Char> {
/**
 * This function takes two words as input and returns a list of characters that are present in both words, but
 * whose ASCII value is less than 100.
 *
 * @param word1 The first word.
 * @param word2 The second word.
 * @return A list of characters that are present in both words, but whose ASCII value is less than 100.
 */
fun commonCharsLessThan(word1: String, word2: String): List<Char> {

    val commonChars = mutableListOf<Char>()  // Initialize an empty list to store the common characters

    // Iterate over each character in the first word
    for (char1 in word1) {
        // Iterate over each character in the second word
        for (char2 in word2) {
            if (char1 == char2 && char1.toInt() < 100) {  // Check if the characters are the same and their ASCII value is less than 100
                commonChars.add(char1)  // Add the character to the commonChars list
            }
        }
    }

    return commonChars
}