Arrays: example 2

This is the animation of example 2. Click the "next step" button to run the animation.