array loop Kotlin mundur

val array: IntArray = intArrayOf(1, 2, 3, 4, 5)
    for (i in (0..array.lastIndex).reversed()) {
        println("Index ${i}, Value ${array[i]}")
    }
Doni Phan