The inner nested for loop

The remainder of the doSomething function, including the entire nested for loop, is shown in Listing 2.