/**
 * Given a tuple list, access its elements using negative indexing.
 *
 * @param tupleList A tuple containing list of elements.
 * @param index1 The first negative index to access an element.
 * @param index2 The second negative index to access an element.
 * @return A tuple containing the elements accessed using negative indexing.
 */
fun accessTupleElements(tupleList: List<Any>, index1: Int, index2: Int): Pair<Any, Any> {

    // Access element at index1 using negative indexing
    val element1 = tupleList[tupleList.size + index1]

    // Access element at index2 using negative indexing
    val element2 = tupleList[tupleList.size + index2]

    return Pair(element1, element2)
}
/**
 * Given a tuple list, access its elements using negative indexing.
 *
 * @param tupleList A tuple containing list of elements.
 * @param index1 The first negative index to access an element.
 * @param index2 The second negative index to access an element.
 * @return A tuple containing the elements accessed using negative indexing.
 */
fun accessTupleElements(tupleList: List<Any>, index1: Int, index2: Int): Pair<Any, Any> {
/**
 * Given a tuple list, access its elements using negative indexing.
 *
 * @param tupleList A tuple containing list of elements.
 * @param index1 The first negative index to access an element.
 * @param index2 The second negative index to access an element.
 * @return A tuple containing the elements accessed using negative indexing.
 */
fun accessTupleElements(tupleList: List<Any>, index1: Int, index2: Int): Pair<Any, Any> {

    // Access element at index1 using negative indexing
    val element1 = tupleList[tupleList.size + index1]

    // Access element at index2 using negative indexing
    val element2 = tupleList[tupleList.size + index2]

    return Pair(element1, element2)
}