The downTo keyword enables developers to interact with the numbers in reverse order. The instruction is self-explanatory, as well. Let's see it in practice:
for (i in 5 downTo 1) { println(i)}
It is pretty easy as well. The interaction will occur in the reverse order, in this case, the value 1 will be included. As we can see, the code is pretty easy to understand.