/**
 * Given a list of elements and a target element, modify each element in the list
 * by adding the OR operator to the target element in the form of "|=".
 *
 * @param elementsList A list of elements (strings or numbers).
 * @param targetElement The target element to add the OR operator to.
 * @return The modified list of elements with the OR operator added to the target element.
 */
fun addOrOperatorToElements(elementsList: MutableList<Int>, targetElement: Int): List<Int> {

    for (i in elementsList.indices) {
        if (elementsList[i] == targetElement) {
            elementsList[i] = elementsList[i] or targetElement
        }
    }
    return elementsList
}

// Example usage:
/**
 * Given a list of elements and a target element, modify each element in the list
 * by adding the OR operator to the target element in the form of "|=".
 *
 * @param elementsList A list of elements (strings or numbers).
 * @param targetElement The target element to add the OR operator to.
 * @return The modified list of elements with the OR operator added to the target element.
 */
fun addOrOperatorToElements(elementsList: MutableList<Int>, targetElement: Int): List<Int> {
/**
 * Given a list of elements and a target element, modify each element in the list
 * by adding the OR operator to the target element in the form of "|=".
 *
 * @param elementsList A list of elements (strings or numbers).
 * @param targetElement The target element to add the OR operator to.
 * @return The modified list of elements with the OR operator added to the target element.
 */
fun addOrOperatorToElements(elementsList: MutableList<Int>, targetElement: Int): List<Int> {

    for (i in elementsList.indices) {
        if (elementsList[i] == targetElement) {
            elementsList[i] = elementsList[i] or targetElement
        }
    }
    return elementsList
}

// Example usage: