/**
 * Concatenates the strings in the given list using the NOT operator.
 *
 * @param stringsList A list of strings to be concatenated.
 * @param notOperator A boolean value representing whether to use the NOT operator or not.
 * @return The concatenated string using the NOT operator.
 *
 * Example:
 * val stringsList = listOf("Hello", "World", "!", "Electrician")
 * val notOperator = true
 * concatenateStringsNotOperator(stringsList, notOperator) -> "!WorldHello"
 */
fun concatenateStringsNotOperator(stringsList: List<String>, notOperator: Boolean): String {

    var concatenatedString = ""

    for (string in stringsList) {
        if (!notOperator) {  // Condition to use the NOT operator
            concatenatedString += string
        } else {
            concatenatedString = string + concatenatedString
        }
    }

    return concatenatedString
}
/**
 * Concatenates the strings in the given list using the NOT operator.
 *
 * @param stringsList A list of strings to be concatenated.
 * @param notOperator A boolean value representing whether to use the NOT operator or not.
 * @return The concatenated string using the NOT operator.
 *
 * Example:
 * val stringsList = listOf("Hello", "World", "!", "Electrician")
 * val notOperator = true
 * concatenateStringsNotOperator(stringsList, notOperator) -> "!WorldHello"
 */
fun concatenateStringsNotOperator(stringsList: List<String>, notOperator: Boolean): String {
/**
 * Concatenates the strings in the given list using the NOT operator.
 *
 * @param stringsList A list of strings to be concatenated.
 * @param notOperator A boolean value representing whether to use the NOT operator or not.
 * @return The concatenated string using the NOT operator.
 *
 * Example:
 * val stringsList = listOf("Hello", "World", "!", "Electrician")
 * val notOperator = true
 * concatenateStringsNotOperator(stringsList, notOperator) -> "!WorldHello"
 */
fun concatenateStringsNotOperator(stringsList: List<String>, notOperator: Boolean): String {

    var concatenatedString = ""

    for (string in stringsList) {
        if (!notOperator) {  // Condition to use the NOT operator
            concatenatedString += string
        } else {
            concatenatedString = string + concatenatedString
        }
    }

    return concatenatedString
}