This function works exactly the same as the reduceRight function, except for the lambda expression, which takes three variables and returns a result:
result = numbers.reduceRightIndexed { index , i, acc -> i + acc }
println("From end : add all elements of the list $result")