/**
 * Modify elements of the electricians list using slicing and bitwise AND operator.
 *
 * @param electricians A list of electricians
 * @param index Index of the element to modify
 * @return The modified electricians list
 */
fun modifyElements(electricians: MutableList<Int>, index: Int): List<Int> {

    // Reverse the electricians list using slicing
    electricians.reverse()

    // Apply the bitwise AND operator to modify the element at the given index
    electricians[index] = electricians[index] and 2

    // Return the modified electricians list
    return electricians
}

// Example usage
/**
 * Modify elements of the electricians list using slicing and bitwise AND operator.
 *
 * @param electricians A list of electricians
 * @param index Index of the element to modify
 * @return The modified electricians list
 */
fun modifyElements(electricians: MutableList<Int>, index: Int): List<Int> {
/**
 * Modify elements of the electricians list using slicing and bitwise AND operator.
 *
 * @param electricians A list of electricians
 * @param index Index of the element to modify
 * @return The modified electricians list
 */
fun modifyElements(electricians: MutableList<Int>, index: Int): List<Int> {

    // Reverse the electricians list using slicing
    electricians.reverse()

    // Apply the bitwise AND operator to modify the element at the given index
    electricians[index] = electricians[index] and 2

    // Return the modified electricians list
    return electricians
}

// Example usage