/**
 * This function takes in a list and an index, and returns the element at that index.
 */
fun accessElement(data: List<Any>, index: Int): Any? {

    if (index < 0 || index >= data.size) {
        return null
    }
    return data[index]
}
/**
 * This function takes in a list and an index, and returns the element at that index.
 */
fun accessElement(data: List<Any>, index: Int): Any? {
/**
 * This function takes in a list and an index, and returns the element at that index.
 */
fun accessElement(data: List<Any>, index: Int): Any? {

    if (index < 0 || index >= data.size) {
        return null
    }
    return data[index]
}