If we can make a
for loop run forwards through an array, can we make it run backwards through it? Of course!
We can make out loop run backwards by modifying the start, stop, and iterator conditions.
To do this, we'll need to edit the code between the
for loop's parentheses:
The start condition should set
i to the length of the array.
The stop condition should end when
The iterator should subtract
1 each time, which is done with