/**
 * This function concatenates two strings using the 'AND' operator.
 *
 * @param text1 The first string.
 * @param text2 The second string.
 * @return The concatenation of text1 and text2 using 'AND' operator.
 */
fun concatenateStrings(text1: String, text2: String): String {

    var result = ""
    // Iterate through each character of the first string and check if it matches any character in the second string.
    for (i in text1.indices) {
        for (j in text2.indices) {
            if (text1[i] == text2[j]) {
                result += text1[i]  // Concatenate the matched character to the result string.
            }
        }
    }
    return result
}
/**
 * This function concatenates two strings using the 'AND' operator.
 *
 * @param text1 The first string.
 * @param text2 The second string.
 * @return The concatenation of text1 and text2 using 'AND' operator.
 */
fun concatenateStrings(text1: String, text2: String): String {
/**
 * This function concatenates two strings using the 'AND' operator.
 *
 * @param text1 The first string.
 * @param text2 The second string.
 * @return The concatenation of text1 and text2 using 'AND' operator.
 */
fun concatenateStrings(text1: String, text2: String): String {

    var result = ""
    // Iterate through each character of the first string and check if it matches any character in the second string.
    for (i in text1.indices) {
        for (j in text2.indices) {
            if (text1[i] == text2[j]) {
                result += text1[i]  // Concatenate the matched character to the result string.
            }
        }
    }
    return result
}