/**
 * A Police Officer is trying to append a new element to a tuple, but they are not sure how to do it.
 * Add the new element 'newElement' to the tuple 'tupleVar'.
 */
fun appendNewElementToTuple(tupleVar: List<String>, newElement: String): List<String> {

    // As tuples are immutable, we cannot directly append a new element to a tuple.
    // However, we can convert the tuple to a list, append the new element, and convert it back to a tuple.
    // Finally, assign the modified tuple back to the original variable.

    // Step 1: Convert the tuple to a list
    val listVar = tupleVar.toMutableList()

    // Step 2: Append the new element to the list
    listVar.add(newElement)

    return listVar
}

// Example usage:
/**
 * A Police Officer is trying to append a new element to a tuple, but they are not sure how to do it.
 * Add the new element 'newElement' to the tuple 'tupleVar'.
 */
fun appendNewElementToTuple(tupleVar: List<String>, newElement: String): List<String> {
/**
 * A Police Officer is trying to append a new element to a tuple, but they are not sure how to do it.
 * Add the new element 'newElement' to the tuple 'tupleVar'.
 */
fun appendNewElementToTuple(tupleVar: List<String>, newElement: String): List<String> {

    // As tuples are immutable, we cannot directly append a new element to a tuple.
    // However, we can convert the tuple to a list, append the new element, and convert it back to a tuple.
    // Finally, assign the modified tuple back to the original variable.

    // Step 1: Convert the tuple to a list
    val listVar = tupleVar.toMutableList()

    // Step 2: Append the new element to the list
    listVar.add(newElement)

    return listVar
}

// Example usage: