/**
 * This function returns the value at the specified index of a given tuple.
 *
 * @param tuple The tuple from which an element needs to be retrieved.
 * @param index The index at which the element needs to be retrieved.
 * @return The element at the specified index of the tuple.
 */
fun getTupleElementAtIndex(tuple: List<Any>, index: Int): Any {

    return try {
        tuple[index]
    } catch (e: IndexOutOfBoundsException) {
        "Index out of range"
    }
}

// Game Developer's code to complete the exercise
/**
 * This function returns the value at the specified index of a given tuple.
 *
 * @param tuple The tuple from which an element needs to be retrieved.
 * @param index The index at which the element needs to be retrieved.
 * @return The element at the specified index of the tuple.
 */
fun getTupleElementAtIndex(tuple: List<Any>, index: Int): Any {
/**
 * This function returns the value at the specified index of a given tuple.
 *
 * @param tuple The tuple from which an element needs to be retrieved.
 * @param index The index at which the element needs to be retrieved.
 * @return The element at the specified index of the tuple.
 */
fun getTupleElementAtIndex(tuple: List<Any>, index: Int): Any {

    return try {
        tuple[index]
    } catch (e: IndexOutOfBoundsException) {
        "Index out of range"
    }
}

// Game Developer's code to complete the exercise