This intention replaces manually incremented index variable for a for-loop with use of "withIndex()" function